Skip to content

Commit 75d4c87

Browse files
committed
update usage.
1 parent ab08158 commit 75d4c87

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ npm i fastify-redis --save
1414
Add it to you project with `register` and you are done!
1515
You can access the *Redis* client via `fastify.redis`.
1616

17-
And you can custom your own redis client, use ``driver`` option, now support [ioredis](https://github.com/luin/ioredis) client, default is [redis](https://github.com/NodeRedis/node_redis).
17+
If needed, you can pass a custom ``driver`` option, such as [ioredis](https://github.com/luin/ioredis). By default the official [redis](https://github.com/NodeRedis/node_redis) client is used.
18+
1819

1920
```js
2021
const fastify = require('fastify')
2122

2223
fastify.register(require('fastify-redis'), {
23-
driver: require('ioredis'), // when you custom your redis client. optional
24+
driver: require('ioredis'),
2425
host: '127.0.0.1'
2526
}, err => {
2627
if (err) throw err

0 commit comments

Comments
 (0)