0.0.1 • Published 11 years ago

cache-queue v0.0.1

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

cacheQueue

Queue for caching objects

Usage:

var Queue = require('cache-queue');
// you can set the expire time(ms) and the total number of caching objects 
var cache = Queue.get('mydata', {duration: 3600000, length: 500});
cache.set('mykey', "this is my data");
cache.get('mykey');