idbcache
Advanced tools
Weekly downloads
Readme
This is a module which tries to mimic lscache api, but with indexedDB storage.
1.) Install the package
npm install idbcache
2.) import it in your file.
import idbcache from 'idbcache'
OR,
var idbcache = require('idbcache').default
Set a value with name 'key' and value 'val' for 'time' minutes.
idbcache.set('hello', 'world', 2);
This will set the key 'hello' with value 'world' for 2mins.
Can be used to retrieve a value store against a particular key.
// logs: "world"
A promise.
Can be used to delete a particular key.
// deletes: Key titled hello from DB.
Can be used to flush the entire key-value store.
FAQs
A lscache like api which is based on indexedDB.
The npm package idbcache receives a total of 616 weekly downloads. As such, idbcache popularity was classified as not popular.
We found that idbcache demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.