Default implementation of storage adapter using browser's localStorage.
Clears all items from localStorage.
A promise that resolves when all items are cleared.
Retrieves a value from localStorage by its key.
The key of the item to retrieve.
A promise that resolves with the value associated with the key, or null if the key does not exist.
Removes a key-value pair from localStorage.
The key of the item to remove.
A promise that resolves when the item is removed.
Stores a key-value pair in localStorage.
The key under which the value is stored.
The value to store.
A promise that resolves when the item is stored.
Default implementation of storage adapter using browser's localStorage.