The number of keys that were removed.
OptionalcloseClose the connection to the store.
OptionalconnectConnect to the store.
Decrement the value associated with a key. Value needs to be a number.
The key to decrement the value for.
Optionalamount: numberThe amount to decrement by.
The new value after decrementing.
Delete a key from the store.
The key to delete.
true if the key was deleted, false otherwise.
Set the expiration time for a key.
The key to set the expiration for.
The time-to-live for the key, in seconds.
true if the expiration was set, false otherwise.
Increment the value associated with a key. Value needs to be a number.
The key to increment the value for.
Optionalamount: numberThe amount to increment by.
The new value after incrementing.
Set the value associated with a key.
The type of the value to set.
The key to set the value for.
The value to set.
OptionalttlSec: numberThe time-to-live for the key, in seconds.
Get the remaining time-to-live for a key.
The key to retrieve the TTL for.
The remaining time-to-live for the key, in seconds.
Clean all keys from the store.