# @sophons/redis

> 🏡 Encapsulate common business methods for Redis

## 

![ci](https://github.com/sophons-space/redis/workflows/workflow/badge.svg)
[![codecov](https://codecov.io/gh/sophons-space/redis/branch/master/graph/badge.svg)](https://codecov.io/gh/sophons-space/redis)
![npm](https://img.shields.io/npm/v/@sophons/redis)
![](https://badgen.net/npm/types/@sophons/redis)
![](https://badgen.net/npm/dm/@sophons/redis)
[![install size](https://packagephobia.com/badge?p=@sophons/redis)](https://packagephobia.com/result?p=@sophons/redis)
![](https://img.shields.io/npm/l/@sophons/redis.svg)
[![Known Vulnerabilities](https://snyk.io/test/npm/@sophons/redis/badge.svg)](https://snyk.io/test/npm/@sophons/redis)

## Features

- To strengthen the publish
- Lock Decorator
- Cache Decorator
- Hash cache Decorator
- **redis client [ioredis 👀](https://github.com/luin/ioredis)**

## Installing

**Using npm:**

```shell
npm install @sophons/redis
```

**Using bower:**

```shell
bower install @sophons/redis
```

**Using yarn:**

```shell
yarn add @sophons/redis
```

**Using cnpm:**

```shell
cnpm install @sophons/redis
```

## Example

[English Docs](docs/en.md) | [中文文档](docs/cn.md)

## License

[MIT](LICENSE)