0.0.3 • Published 10 years ago

tagged-cache v0.0.3

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

A tagged cache.

cache.wrap("hola", function(callback){
	console.log("working")
	callback(null, 123, {tags: ['lala'], ttl: 5});
}, function(err, data){
	console.log(err, data);
	cache.wrap("hola2", function(callback){
		console.log("working2")
		callback(null, 123, {tags: ['lala'], ttl: 7});
	}, function(err, data){
		console.log(err, data);
		cache.deleteTags('lala', function(err, data){
			console.log(err)
		})
	});
})