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? }
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