Cache storage wrapper
The storage instance (e.g., localStorage or sessionStorage).
Optional key prefix
Create a new CacheStorage instance
storage instance
Optional
Optional key prefix for storage keys
CacheStorageError
Private
Get an item from the storage if not expired
key
Remove an item from the storage
Save an item in the storage with a ttl
data to store
time to live in milliseconds
Generated using TypeDoc
Cache storage wrapper
Param
The storage instance (e.g., localStorage or sessionStorage).
Param
Optional key prefix