Strategy interface for key-value storage.
Implement this interface to provide alternative storage backends (e.g. sessionStorage, in-memory, IndexedDB, or a server-side store).
All methods should handle errors internally and never throw.
Retrieve a value by key. Returns null when the key does not exist.
null
Remove the value for the given key.
Store a value under the given key.
Strategy interface for key-value storage.
Implement this interface to provide alternative storage backends (e.g. sessionStorage, in-memory, IndexedDB, or a server-side store).
All methods should handle errors internally and never throw.