0.0.2 • Published 6 years ago

ycache v0.0.2

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

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