Creates a new memory service.
An object providing values to initialize this instance.
Removes all entries from this cache.
Resolves when this cache has been cleared.
Removes the value associated with the specified key.
The cache key.
Resolves when the value has been removed.
Gets the value associated with the specified key.
The cache key.
The cached value, or null
if the key does not exist.
Gets a value indicating whether this cache contains the specified key.
The cache key.
true
if this cache contains the specified key, otherwise false
.
Associates a given value with the specified key.
The cache key.
The value to be cached.
The number of seconds in which the cached value will expire.
This instance.
Implements an in-memory cache.