Skip to content

Latest commit

 

History

History
37 lines (20 loc) · 673 Bytes

README.md

File metadata and controls

37 lines (20 loc) · 673 Bytes

get-redis-client

npm version

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();
})();