Skip to content

Commit eb1e4d0

Browse files
committed
Added docs for Redis options
Fixes #4.
1 parent 058d03e commit eb1e4d0

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,18 @@ which is used internally to connect to Redis.
2121

2222
This constructor creates two connections to Redis.
2323

24+
Example:
25+
26+
```js
27+
aedesPersistenceRedis({
28+
port: 6379, // Redis port
29+
host: '127.0.0.1', // Redis host
30+
family: 4, // 4 (IPv4) or 6 (IPv6)
31+
password: 'auth',
32+
db: 0
33+
})
34+
```
35+
2436
## License
2537

2638
MIT

0 commit comments

Comments
 (0)