Skip to content

Commit 91e45ac

Browse files
committed
[redis][doc] add example of secure connection.
1 parent ad68139 commit 91e45ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/transport/redis.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ $psrContext = (new \Enqueue\ConnectionFactoryFactory())->create('redis:')->creat
6767
$redis = new \Enqueue\Redis\PhpRedis([ /** redis connection options */ ]);
6868
$redis->connect();
6969

70+
// Secure\TLS connection. Works only with predis library. Note second "S" in scheme.
71+
$factory = new RedisConnectionFactory('rediss://user:pass@host/0?vendor=predis');
72+
7073
$factory = new RedisConnectionFactory($redis);
7174
```
7275

0 commit comments

Comments
 (0)