ReadonlydriverReadonlynamespaceReadonlymaxThe value limit in effect: the smaller of the option and the driver's own limit.
Declares a typed value stored under name. Cheap: call it once at module level.
With a schema, the item's type is the schema's output and defaultValue must match it.
Without one, pass the type (storage.item<string>('token')) or let defaultValue set it.
Declares a typed value stored under name. Cheap: call it once at module level.
With a schema, the item's type is the schema's output and defaultValue must match it.
Without one, pass the type (storage.item<string>('token')) or let defaultValue set it.
Declares a typed value stored under name. Cheap: call it once at module level.
With a schema, the item's type is the schema's output and defaultValue must match it.
Without one, pass the type (storage.item<string>('token')) or let defaultValue set it.
Declares a typed value stored under name. Cheap: call it once at module level.
With a schema, the item's type is the schema's output and defaultValue must match it.
Without one, pass the type (storage.item<string>('token')) or let defaultValue set it.
Optionaloptions: ItemOptions<T>The key under which the driver stores name. Throws INVALID_KEY for a bad name.
Names (without the namespace) of every stored key in this namespace.
Removes every key in this namespace (every key, without a namespace). Returns the count.
Removes values whose TTL has passed. Returns how many were removed.
Stops listening to the driver. Items keep working but no longer see outside changes.
A namespace in one backend, with a cache that keeps hooks and items in sync.
Create one per backend and namespace with createStorage, then declare typed items with Storage.item.