0.4.0 • Published 4 years ago

cacherrr v0.4.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

cacherrr

simple caching for the browser

Install

npm install cacherrr

Example Setup

Javascript

import Cacherrr from 'cacherrr';

// create an instance
const cacherrr = new Cacherrr();

// set cached data for path
cacherrr.set('/path', {key: 'value'})
  .then(data => {console.log(data);})
  .catch(e => {console.error(e);});

// get cached data for path
cacherrr.get('/path')
  .then(data => {console.log(data);})
  .catch(e => {console.error(e);});

// clear cache for path
cacherrr.clear('/path');

// clear entire cache
cacherrr.clearAll();

License

MIT License

0.3.0

4 years ago

0.4.0

4 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago