# redis-service-client

> Service client for Redis

Latest version **1.0.2** (published 2017-12-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install redis-service-client
pnpm add redis-service-client
yarn add redis-service-client
bun add redis-service-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-12-19 |
| First published | 2016-03-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ralucas |
| Maintainers | ralucas |
| Keywords | redis |

## Links

- npm: https://www.npmjs.com/package/redis-service-client
- Repository: https://github.com/ralucas/redis-service-client
- Issues: https://github.com/ralucas/redis-service-client/issues
- npm.io page: https://npm.io/package/redis-service-client

## Dependencies (3)

- [q](https://npm.io/package/q.md) ^1.4.1
- [redis](https://npm.io/package/redis.md) ^2.4.2
- [object-assign](https://npm.io/package/object-assign.md) ^4.0.1

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-12-19
- 1.0.1 — 2017-05-13
- 1.0.0 — 2017-05-13
- 0.0.5 — 2016-04-03
- 0.0.4 — 2016-03-27
- 0.0.3 — 2016-03-13
- 0.0.2 — 2016-03-07
- 0.0.1 — 2016-03-06

## README

Redis Service Client
---
[![Build Status](https://secure.travis-ci.org/ralucas/redis-service-client.png?branch=master)](http://travis-ci.org/ralucas/redis-service-client)

## 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:
```js
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  
  });
```

---
_Source: https://npm.io/package/redis-service-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
