ycache

0.0.2 • Public • Published

cache

Build Status

simple lru cache for node and browser

Install

npm install ycache --save

Usage

const Cache = require('simple-cache');
const cache = new Cache(10000);
cache.set('key','value'); // cache it
cache.get('key'); //if you cache it 
cache.cleanup(); // clean cache
cache.update('key','anothervalue');// update cache

Test

npm run test

Readme

Keywords

Package Sidebar

Install

npm i ycache

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

3.66 kB

Total Files

4

Last publish

Collaborators

  • buji