Install
npm i @gosquared/stash-2
Usage
const stash = new Stash();
const key = 'test';
const fetch = async () => { return { test: 1 } }
const value = await stash.get(key, fetch);
Development
npm i
npm run watch
npm test
npm i @gosquared/stash-2
const stash = new Stash();
const key = 'test';
const fetch = async () => { return { test: 1 } }
const value = await stash.get(key, fetch);
npm i
npm run watch
npm test
npm i @gosquared/stash-2
0
0.1.3
ISC
23.9 kB
10