redisp
How to install
npm install redisp --save
redisp
is a connection factory
for redis with a built-in support for pooling.
How to use
var pool = ; //creates a dedicated client connectionpool; //retrieves a client connection from the poolpool;
Options
var pool = opts;
List of available options:
host
: host to connect redis on (127.0.0.1
)port
: port to connect redis on (6379
)password
: password used in authentication (''
)maxConnections
: maximum number of connections that can be held in the connection pool. IfmaxConnections
is reached, new calls topool.borrow
will be blocked until a client connection is released.
All other options are the same as in redis.
License
MIT