Drops every entry from the store. Test utility only — production implementations should not expose this affordance.
Deletes a key.
Retrieves a value by key. When type is json, the value should be parsed.
Optionaltype: "text"Lists keys, optionally filtered by prefix.
Optionaloptions: { cursor?: string; limit?: number; prefix?: string }Stores a value by key.
Optionaloptions: { expirationTtl?: number }Optionaloptions: { ttl?: number }Returns the number of non-expired entries currently in the store. Useful for asserting on cleanup behavior in tests.
In-memory implementation of KVStorage.
Implements every method on the contract plus a few NuxtHub-flavored aliases (
set,del,keys,getItem,setItem,removeItem,getKeys) so the same instance can be wrapped bycreateNuxtHubKVProviderwithout any additional adapter glue.