Retrieve a value from the cache for the given type
Retrieve a value from the cache for the given type
Item key.
result as 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
Set a value into the cache.
Set a value into the cache.
Item key.
Item value.
Expiration time.
A cache API that uses synchronous calls rather than async calls. Useful when you know you have a fast in-memory cache.