runsv-redis
v3.0.4
Published
runsv redis service wrapper
Readme
runsv Redis service
This is a service wrapper around the excellent node-redis for runsv.
Install
$ npm install runsv-redis
Usage with node-redis >= v4
import redis from 'redis';
import * as runsv from 'runsv';
import {create} from 'runsv-redis';
const nodeRedisOptions = {
url:'...'
};
const redis = create(nodeRedis, nodeRedisOptions);
runsv.addService(redis);
await runsv.start();
const redisClient = runsv.getClients().redis;
await redisClient.hmset(["key", "foo", "bar"]);Configure node-redis
You can configure your connection to Redis the same way you you do it with node-redis.
