Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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();

About

simple caching module for nodejs

Resources

License

Packages

No packages published
You can’t perform that action at this time.