Skip to content

Commit 1fdb9da

Browse files
author
Anton
authored
Update redis.md
Fixed example of configuration. Current expression is `in_array('phpredis', $this->config['scheme_extensions'], true)` (https://github.com/php-enqueue/redis/blob/0.9.6/RedisConnectionFactory.php#L99)
1 parent cc69df2 commit 1fdb9da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: docs/transport/redis.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ $factory = new RedisConnectionFactory([]);
7171
$factory = new RedisConnectionFactory([
7272
'host' => 'example.com',
7373
'port' => 1000,
74-
'vendor' => 'phpredis',
74+
'scheme_extensions' => ['phpredis'],
7575
]);
7676

7777
// same as above but given as DSN string
@@ -101,7 +101,7 @@ use Enqueue\Redis\RedisConnectionFactory;
101101
$connectionFactory = new RedisConnectionFactory([
102102
'host' => 'localhost',
103103
'port' => 6379,
104-
'scheme_extensions' => 'predis',
104+
'scheme_extensions' => ['predis'],
105105
]);
106106

107107
$context = $connectionFactory->createContext();
@@ -232,4 +232,4 @@ To use it with Enqueue Redis you have to pass REDIS_URL to RedisConnectionFactor
232232
$connection = new \Enqueue\Redis\RedisConnectionFactory(getenv('REDIS_URL'));
233233
```
234234

235-
[back to index](../index.md)
235+
[back to index](../index.md)

0 commit comments

Comments
 (0)