Cache storage wrapper
The storage instance (e.g., localStorage or sessionStorage).
Create a new CacheStorage instance
storage instance
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).