cb-cache
A simple memcached like interface to couchbase
Usage
var couchbase = ;var CBCache = ;var cluster = "couchbase://127.0.0.1";var bucket = cluster;var cache = bucket; cache;
API
CBCache.get Get the value for the given key.
key
: String, the keycallback
: Function, the callback.
cache;
cache.set Stores a new value in Cache.
key
: String the name of the keyvalue
: Mixed Either a buffer, JSON, number or string that you want to store.lifetime
: Number, how long the data needs to be stored measured inseconds
callback
: Function the callback
cache;
memcached.del Remove the key from memcached.
key
: String the name of the keycallback
: Function the callback
memcached;