Retrieve a value by key.
The key to look up.
The value, or null if not found.
Store a value by key.
The key to store under.
The value to store.
Remove a value by key.
The key to remove.
Retrieve all key-value pairs.
An object mapping keys to values.
Interface for pluggable storage adapters.
Remarks
Implement this interface to provide custom storage backends for offline sync. Adapters must serialize the value object when storing, and deserialize it when retrieving. The value passed to
set(key, value)
is an object matching the ItemType shape: { value, expiresAt, createdAt, updatedAt, keyVersion? }Example