CaffeineCacheApi
Cache implementation of AsyncCacheApi
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Retrieve a value from the cache for the given type
Retrieve a value from the cache for the given type
Value parameters
- key
-
Item key.
Attributes
- Returns
-
result as a future of Option[T]
Retrieve a value from the cache, or set it from a default function.
Retrieve a value from the cache, or set it from a default function.
Value parameters
- expiration
-
expiration period in seconds.
- key
-
Item key.
- orElse
-
The default function to invoke if the value was not found in cache.
Attributes
Remove a value from the cache
Remove a value from the cache
Attributes
Removes all values from the cache. This may be useful as an admin user operation if it is supported by your cache.
Removes all values from the cache. This may be useful as an admin user operation if it is supported by your cache.
Attributes
- Returns
-
a Future[Done], which is completed with either a Done or an exception if the clear did not work.
- Throws
-
UnsupportedOperationException
if this cache implementation does not support removing all values.