# @kevinwang0316/redis-helper

> A helper to generate asynchronous clients for Redis.

Latest version **1.0.1** (published 2019-03-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @kevinwang0316/redis-helper
pnpm add @kevinwang0316/redis-helper
yarn add @kevinwang0316/redis-helper
bun add @kevinwang0316/redis-helper
```

## 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.1 |
| Published | 2019-03-27 |
| First published | 2019-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kevin W. |
| Maintainers | kevinwang0316 |
| Keywords | Redis, Asynchronous Client |

## Links

- npm: https://www.npmjs.com/package/@kevinwang0316/redis-helper
- Repository: https://github.com/PengWang0316/RedisHelper
- Homepage: https://github.com/PengWang0316/RedisHelper#readme
- Issues: https://github.com/PengWang0316/RedisHelper/issues
- npm.io page: https://npm.io/package/@kevinwang0316/redis-helper

## Dependencies (1)

- [@kevinwang0316/log](https://npm.io/package/@kevinwang0316/log.md) ^1.0.1

## 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.1 (latest) — 2019-03-27
- 1.0.0 — 2019-03-27

## README

# RedisHelper

A helper to generate asynchronous client for Redis.

[![Build Status](https://travis-ci.org/PengWang0316/RedisHelper.svg?branch=master)](https://travis-ci.org/PengWang0316/RedisHelper)
[![Coverage Status](https://coveralls.io/repos/github/PengWang0316/RedisHelper/badge.svg?branch=master)](https://coveralls.io/github/PengWang0316/RedisHelper?branch=master)

# Installing

```
npm install --save @kevinwang0316/redis-helper
```

# Usage

````javascript
// Node
const { createClient, getAsync, setAsync, quit, getClient } = require('@kevinwang0316/redis-helper');
// ES6
//import { createClient, getAsync, setAsync, quit, getClient } from '@kevinwang0316/redis-helper';

// Initialize the client before you use other functions
createClient('host', 'port', 'password');

// Set values
await setAsync('key', 'value');

// Get values
const value = await getAsync('key');

// Get Redis client
const client = getClient();

// Quit client
quit();
````

# License

RedisHelper is licensed under MIT License - see the [License file](https://github.com/PengWang0316/RedisHelper/blob/master/LICENSE).

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