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 the value associated with the specified key if it exists, or generates a new entry using the value from the given factory.
The cache key.
The factory that creates the value if the key does not exist in the cache.
Optional
duration: numberThe number of seconds in which the cached value will expire.
The cached value.
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.
Represents a cache.