Skip to content

Commit

Permalink
Update redis.md
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Anton authored Jan 15, 2019
1 parent cc69df2 commit 1fdb9da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/transport/redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ $factory = new RedisConnectionFactory([]);
$factory = new RedisConnectionFactory([
'host' => 'example.com',
'port' => 1000,
'vendor' => 'phpredis',
'scheme_extensions' => ['phpredis'],
]);

// same as above but given as DSN string
Expand Down Expand Up @@ -101,7 +101,7 @@ use Enqueue\Redis\RedisConnectionFactory;
$connectionFactory = new RedisConnectionFactory([
'host' => 'localhost',
'port' => 6379,
'scheme_extensions' => 'predis',
'scheme_extensions' => ['predis'],
]);

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

[back to index](../index.md)
[back to index](../index.md)

0 comments on commit 1fdb9da

Please sign in to comment.