Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

node-redis-helper

0.1.4 • Public • Published

node-redis-helper

A lightweight Promise-based wrapper and helper for node Redis.

node-redis-helper tries to be a durable way of optaining a client connection. More features soon to come.

Currently undergoing testing, probably shouldn't use :)

Initialization

npm install node-redis-helper
var redisOptions = {
    host: '127.0.0.1',
    port: 6370,
    password: 'chicken'
};
redis = new RedisHelper(redisOptions);
 

Fetch a client

node-redis-helper Tries to be a

redis.client()
    .then(function(client){
        //use client like normal
        client.set('chicken', 'bessie');
    })
    .catch(function(err){
        console.log('Redis Error',err);
    })

Client Operations

Please check out Node Redis for a full list of operations.

To Do

  • Connection Pooling
  • Evaluate IO Redis
  • More Testing

Install

npm i node-redis-helper

DownloadsWeekly Downloads

2

Version

0.1.4

License

MIT

Last publish

Collaborators

  • avatar