1 | # 🌹 @sharyn/redis
|
2 |
|
3 | [![npm](https://img.shields.io/npm/v/@sharyn/redis.svg)](https://www.npmjs.com/package/@sharyn/redis)
|
4 |
|
5 | This package provides a convenient access to your Redis instance.
|
6 |
|
7 | ## 🌹 Install
|
8 |
|
9 | ```bash
|
10 | yarn add @sharyn/redis
|
11 | ```
|
12 |
|
13 | ## 🌹 Usage
|
14 |
|
15 | ```js
|
16 | import redis from '@sharyn/redis'
|
17 |
|
18 | const main = async () => {
|
19 | await redis.setAsync('some-key', 'hi')
|
20 | await redis.getAsync('some-key') // hi
|
21 | await redis.delAsync('some-key')
|
22 | }
|
23 | ```
|