0.0.1 • Published 10 years ago

cachee v0.0.1

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

cachee

A full-featured caching module for node.js

Usage

var cache = require('./index');

cache.useCounter();
cache.set('mike', 20);
console.log(cache.get('mike'));

Functions

set(key, value)

get(key)

getCount(key)

delete(key)

clear()

incrby(key, incr)

ttl(key, time, timeoutCallback)

useCounter()

isEmptyCache(key)

isValidKey(key)

isValidTrigger(key)

keys()

size()

trigger(key, conditions, callbackFunction)

getTriggerCount(key)

removeTrigger(key)