Skip to content

Commit

Permalink
Merge pull request #723 from AntonShevchuk/patch-1
Browse files Browse the repository at this point in the history
Update redis.md
  • Loading branch information
makasim authored Jan 15, 2019
2 parents c221abe + 1fdb9da commit 35b15fc
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 35b15fc

Please sign in to comment.