Retrieve a value from the cache for the given type
Retrieve a value from the cache for the given type
Item key.
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.
Item key.
expiration period in seconds.
The default function to invoke if the value was not found in cache.
Remove a value from the cache
Removes all values from the cache.
Removes all values from the cache. This may be useful as an admin user operation if it is supported by your cache.
a Future[Done], which is completed with either a Done or an exception if the clear did not work.
UnsupportedOperationException
if this cache implementation does not support removing all values.
Set a value into the cache.
Set a value into the cache.
Item key.
Item value.
Expiration time.
Get an instance of SyncCacheApi to make synchronous calls.
The cache API