1.0.5 • Published 4 years ago

get-redis-client v1.0.5

Weekly downloads
5
License
BSD-3-Clause
Repository
github
Last release
4 years ago

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