Interface for a storage adapter, allowing for various implementations such as localStorage, sessionStorage, or custom storage mechanisms.
Clears all stored values.
A promise that resolves when all values are cleared.
Retrieves a stored value by its name.
The key associated with the value to retrieve.
A promise that resolves with the retrieved value, or null if not found.
Removes the stored value associated with the specified name.
The key of the value to remove.
A promise that resolves when the value is removed.
Stores a value under the specified name.
The key under which the value will be stored.
The value to store.
A promise that resolves when the value is stored.
Interface for a storage adapter, allowing for various implementations such as localStorage, sessionStorage, or custom storage mechanisms.