Skip to content

Commit 3566edb

Browse files
authored
Merge pull request #47 from Sopamo/master
Add example for tls connections
2 parents 1402be8 + f314951 commit 3566edb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,18 @@ server.set( 'cache', new RedisCacheConnector( {
2828

2929
server.start();
3030
```
31+
32+
## Basic Setup with TLS support
33+
If you need to establish the redis connection via tls, set the `tls` option:
34+
```yaml
35+
plugins:
36+
cache:
37+
name: redis
38+
options:
39+
host: ${REDIS_HOST}
40+
port: ${REDIS_PORT}
41+
db: ${REDIS_DB_INDEX} // optional
42+
ttl: 86400 // optional time to live in seconds
43+
tls: {}
44+
```
45+

0 commit comments

Comments
 (0)