Deletes the value stored for the given key.
If there was a value to delete.
Key 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.
The storage.
Key to set/update.
Value to store.
Optional
expiration: numberHow long this data should stay valid in milliseconds.
Sets the value for the given key. Should error if the data is already expired.
The storage.
Key to set/update.
Value to store.
Optional
expires: DateWhen this value expires. Never if undefined.
A KeyValueStorage in which the values can expire. Entries with no expiration date never expire.