Skip to content

Commit

Permalink
[8.x] Add retry_interval option for phpredis (#6576)
Browse files Browse the repository at this point in the history
* Add retry_interval option for phpredis

This appears to be a supported option when connecting to Redis using phpredis client
https://github.com/laravel/framework/blob/8.x/src/Illuminate/Redis/Connectors/PhpRedisConnector.php#L124

See `retry_interval`
https://github.com/phpredis/phpredis#connect-open

This is in `ms` and I THINK will happen a max of 10 times, awaiting confirmation on this one - phpredis/phpredis#1883

* Update redis.md

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
carltondickson and taylorotwell committed Nov 16, 2020
1 parent 82fe28a commit cc7d09a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ If you plan to use PhpRedis extension along with the `Redis` Facade alias, you s

'RedisManager' => Illuminate\Support\Facades\Redis::class,

In addition to the default `host`, `port`, `database`, and `password` server configuration options, PhpRedis supports the following additional connection parameters: `persistent`, `prefix`, `read_timeout`, `timeout`, and `context`. You may add any of these options to your Redis server configuration in the `config/database.php` configuration file:
In addition to the default `host`, `port`, `database`, and `password` server configuration options, PhpRedis supports the following additional connection parameters: `persistent`, `prefix`, `read_timeout`, `retry_interval`, `timeout`, and `context`. You may add any of these options to your Redis server configuration in the `config/database.php` configuration file:

'default' => [
'host' => env('REDIS_HOST', 'localhost'),
Expand Down

0 comments on commit cc7d09a

Please sign in to comment.