Skip to content

Commit c34cbe5

Browse files
authored
docs(readme): bring back url option in create
1 parent 0f38c64 commit c34cbe5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ Under the hood [ioredis](https://github.com/luin/ioredis) is used as client, the
2424
```js
2525
const fastify = require('fastify')()
2626

27-
// minimum options
27+
// create by specifying host
2828
fastify.register(require('fastify-redis'), { host: '127.0.0.1' })
2929

30+
// OR or by specifying Redis URL
31+
fastify.register(require('fastify-redis'), { url: 'redis://127.0.0.1', /* other redis options */ })
32+
3033
// OR with more options
3134
fastify.register(require('fastify-redis'), {
3235
host: '127.0.0.1',

0 commit comments

Comments
 (0)