Cache
API MAY CHANGE
General interface implemented by all cache implementations.
Attributes
- Source
- Cache.scala
- Graph
-
- Supertypes
- Self type
-
Members list
Value members
Abstract methods
Returns either the cached Future for the given key or evaluates the given value generating function producing a Future[V]
.
Returns either the cached Future for the given key or evaluates the given value generating function producing a Future[V]
.
Attributes
- Source
- Cache.scala
Clears the cache by removing all entries.
Retrieves the future instance that is currently in the cache for the given key. Returns None if the key has no corresponding cache entry.
Retrieves the future instance that is currently in the cache for the given key. Returns None if the key has no corresponding cache entry.
Attributes
- Source
- Cache.scala
Returns either the cached Future for the given key, or applies the given value loading function on the key, producing a Future[V]
.
Returns either the cached Future for the given key, or applies the given value loading function on the key, producing a Future[V]
.
Attributes
- Source
- Cache.scala
Returns the set of keys in the cache, in no particular order Should return in roughly constant time. Note that this number might not reflect the exact keys of active, unexpired cache entries, since expired entries are only evicted upon next access (or by being thrown out by a capacity constraint).
Returns the set of keys in the cache, in no particular order Should return in roughly constant time. Note that this number might not reflect the exact keys of active, unexpired cache entries, since expired entries are only evicted upon next access (or by being thrown out by a capacity constraint).
Attributes
- Source
- Cache.scala
Cache the given future if not cached previously. Or replace the old cached value on successful completion of given future. In case the given future fails, the previously cached value for that key (if any) will remain unchanged.
Cache the given future if not cached previously. Or replace the old cached value on successful completion of given future. In case the given future fails, the previously cached value for that key (if any) will remain unchanged.
Attributes
- Source
- Cache.scala
Removes the cache item for the given key.
Returns the upper bound for the number of currently cached entries. Note that this number might not reflect the exact number of active, unexpired cache entries, since expired entries are only evicted upon next access (or by being thrown out by a capacity constraint).
Returns the upper bound for the number of currently cached entries. Note that this number might not reflect the exact number of active, unexpired cache entries, since expired entries are only evicted upon next access (or by being thrown out by a capacity constraint).
Attributes
- Source
- Cache.scala
Concrete methods
Returns either the cached Future for the key or evaluates the given function which should lead to eventual completion of the promise.
Returns either the cached Future for the key or evaluates the given function which should lead to eventual completion of the promise.
Attributes
- Source
- Cache.scala
Returns either the cached Future for the given key or the given value as a Future
Returns either the cached Future for the given key or the given value as a Future
Attributes
- Source
- Cache.scala
Attributes
- Definition Classes
-
Cache
- Source
- Cache.scala
Attributes
- Definition Classes
-
Cache
- Source
- Cache.scala
Attributes
- Definition Classes
-
Cache
- Source
- Cache.scala
Returns either the cached CompletionStage for the given key or the given value as a CompletionStage
Returns either the cached CompletionStage for the given key or the given value as a CompletionStage
Attributes
- Definition Classes
-
Cache
- Source
- Cache.scala
Attributes
- Definition Classes
-
Cache
- Source
- Cache.scala