Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitcoin-api/get-redis-client
Get Redis Client Helper Function
https://github.com/bitcoin-api/get-redis-client
Last synced: 2 days ago
JSON representation
Get Redis Client Helper Function
- Host: GitHub
- URL: https://github.com/bitcoin-api/get-redis-client
- Owner: bitcoin-api
- License: bsd-3-clause
- Created: 2020-07-21T22:25:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-27T18:21:06.000Z (over 3 years ago)
- Last Synced: 2024-11-04T04:02:19.230Z (12 days ago)
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: funding.yml
- License: LICENSE
Awesome Lists containing this project
README
# get-redis-client
[![npm version](https://badge.fury.io/js/get-redis-client.svg)](https://badge.fury.io/js/get-redis-client)
Get Redis Client
## About
Redis helper function to get Redis client. Useful in combination with [do-redis-request](https://github.com/bitcoin-api/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
```.js
'use strict';const getRedisClient = require( 'get-redis-client' );
(() => {
const redisClient = getRedisClient();
redisClient.quit();
})();
```