# get-redis-client

> Get Redis Client

Latest version **1.0.5** (published 2020-07-26) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install get-redis-client
pnpm add get-redis-client
yarn add get-redis-client
bun add get-redis-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2020-07-26 |
| First published | 2020-07-21 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Michael Stecky-Efantis |
| Maintainers | bitcoin-api.io |
| Keywords | get, redis, client |

## Links

- npm: https://www.npmjs.com/package/get-redis-client
- Repository: https://github.com/bitcoin-api/get-redis-client
- Homepage: https://github.com/bitcoin-api/get-redis-client#readme
- Issues: https://github.com/bitcoin-api/get-redis-client/issues
- Funding: https://github.com/sponsors/bitcoin-api
- npm.io page: https://npm.io/package/get-redis-client

## Dependencies (1)

- [redis](https://npm.io/package/redis.md) ^3.0.2

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2020-07-26
- 1.0.4 — 2020-07-22
- 1.0.3 — 2020-07-22
- 1.0.1 — 2020-07-22
- 1.0.0 — 2020-07-21

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

---
_Source: https://npm.io/package/get-redis-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
