0.2.1 • Published 6 years ago

pcache v0.2.1

Weekly downloads
1
License
BSD-2-Clause
Repository
github
Last release
6 years ago

pcache


Build Status devDependency Status npm

simple caching module for nodejs

install

npm install pcache

usage

var cache = import('pcache');
# init new cache with caching time of 60s
var myCache = new cache(60);

setter

myCache.set('foo', 'bar');
# you can also set a individual caching time
myCache.set('foo', 'bar', 3600);

getter

myCache.get('foo');

delete

myCache.del('foo');

get all keys

myCache.keys();

clear complete cache

myCache.clearAll();
0.2.1

6 years ago

0.2.0

6 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

9 years ago

0.1.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago