redis-quick-callback
An enhancement to mranney/node-redis that calls back immediately when no connection is present. When a connection is lost, node-redis
client takes anywhere between 200ms to 2500ms to callback. One way around this to turn off enable_offline_queue
and loose the awesome offline queuing functionality. This client calls back immediately and executes the command asynchronously.
Usage
Create a new client using the same API as mranney/node-redis
var redis = ;var client = redis;client;
Build and Test
The code can be built using gulp as follows
$ gulp
Tests require redis to be running at localhost:6379
Run tests using
$ npm test