thecache
Install: npm install thecache
API
get(key)
Gets a key
set(key, value[, expire])
Sets a key with optional expire time in seconds
put(key, value[, expire])
Alias for set
del(key)
Deletes a key
clear()
Delete all data and expiration timers
Usage
var thecache = ; var conf = ; // Each call creates it's own self-contained cachevar tests = ; conf; conf; // The value can be any JS variable conf; // Expires after 2 seconds var val2 = conf; // Contents can be gotten with a sync call... conf;