redis-cache
Super simple redis-based single-lookup caching for Node.js designed as a temporary storage for Hook.io
Install
$ npm install redis-cache
Usage
Example using Hook.io (obviously very simplified)
hook-one.js
var cache = ; cache; hook;
hook-two.js
var cache = ; cache; hook;
Configuration
The redisCache.init
method can take a redis url as a paramter as shown above, or a config object.
The expire value is how long (in seconds) a value is held in cache.