Get Redis Client
Redis helper function to get Redis client. Useful in combination with do-redis-request.
npm install get-redis-client --save
Your Redis URL can be set using the environment variable process.env.REDIS_URL
. The default Redis URL is 127.0.0.1:6379
.
'use strict';
const getRedisClient = require( 'get-redis-client' );
(() => {
const redisClient = getRedisClient();
redisClient.quit();
})();