The type of the cached value
Optional type of the cache key (default is string)
Clear all cached values
Deletes a value from the cache
The key to delete the value for
Promise of true if the value was deleted, false otherwise
Get key expiration Date object or undefined if not found in cache
The key to get the expiration for
Promise of Date object or undefined if not found in cache
Checks if a key exists in the cache
The key to check for
Promise of true if the key exists in the cache, false otherwise
Gets the number of items in the cache
Promise of the number of items in the cache
Asynchronous cache interface
Since
v0.0.1
Example