Deletes the value stored for the given key.
Key to delete.
If there was a value to delete.
An iterable of entries in the storage.
Returns the value stored for the given identifier.
undefined
if no value is stored.
Checks if there is a value stored for the given key.
Sets the value for the given key. Should error if the data is already expired.
Key to set/update.
Value to store.
Optional
expiration: numberHow long this data should stay valid in milliseconds.
The storage.
Sets the value for the given key. Should error if the data is already expired.
Key to set/update.
Value to store.
Optional
expires: DateWhen this value expires. Never if undefined.
The storage.
A KeyValueStorage in which the values can expire. Entries with no expiration date never expire.