1.0.2 • Published 6 years ago

redis-service-client v1.0.2

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

Redis Service Client

Build Status

Introduction

An abstraction service client for Redis that uses promises.
It implements the following data structures or methods:

  • Priority Queue
  • PubSub
  • Any redis method

Getting Started

Installation: $ npm install --save redis-service-client

How to use:

const RedisService = require('redis-service-client').redis;
const redisService = new RedisService();

// Start up the monitoring client
redisService.monitor();

// Set up pubsub client
const PubSub = require('redis-service-client').pubsub;
const pubsub = new PubSub(config);

pubsub.listen('hello', function(data) {
  console.log('hello ' + data); // 'hello world'l  
});
pubSub.publish('hello', 'world');

// Execute a Redis command
redisService.execute('redisCommand', ['args'])
  .then(function(results) {
    \\handle results  
  });
1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago