Licence
BSD-3-Clause
Version
1.0.5
Deps
1
Size
3 kB
Vulns
0
Weekly
0
get-redis-client
Get Redis Client
About
Redis helper function to get Redis client. Useful in combination with do-redis-request.
Installation
npm install get-redis-client --save
Set Up
Your Redis URL can be set using the environment variable process.env.REDIS_URL. The default Redis URL is 127.0.0.1:6379.
Example
'use strict';
const getRedisClient = require( 'get-redis-client' );
(() => {
const redisClient = getRedisClient();
redisClient.quit();
})();