Skip to content

Commit

Permalink
[redis][doc] add example of secure connection.
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Sep 7, 2018
1 parent ed54a51 commit 414f322
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/transport/redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ $psrContext = (new \Enqueue\ConnectionFactoryFactory())->create('redis:')->creat
$redis = new \Enqueue\Redis\PhpRedis([ /** redis connection options */ ]);
$redis->connect();

// Secure\TLS connection. Works only with predis library. Note second "S" in scheme.
$factory = new RedisConnectionFactory('rediss://user:pass@host/0?vendor=predis');

$factory = new RedisConnectionFactory($redis);
```

Expand Down

0 comments on commit 414f322

Please sign in to comment.