lsdis
KV storage based on LocalStorage.
Purpose
Cache requests with localStorage in the browser.
Feature
- Local storage API
- Cache wrapper
- Cache invalidate
Usage
LocalStorage - Low Level API
// set value with timeout(/ms)storage.setmykey, myval, timeoutMs // if not existed, return null else return stringstorage.getmykey // delete by keystorage.delmykey // flush all localstoragestorage.flush
LocalCache - High Level API