Skip to content

Commit

Permalink
[6.0] Added additional step to setup PHP Redis
Browse files Browse the repository at this point in the history
[Fixes #29806](laravel/framework#29806)
  • Loading branch information
DarkGhostHunter authored Aug 31, 2019
1 parent 5e0dc47 commit 5da9911
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ The PhpRedis extension is configured as default at `REDIS_CLIENT` env and in you
// Rest of Redis configuration...
],

If you plan to use PhpRedis extension along with the `Redis` Facade alias, you should rename it to something else, like `RedisManager`, to avoid a collision with the Redis class. You can do that in the aliases section of your `app.php` config file.

'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` and `timeout`. You may add any of these options to your Redis server configuration in the `config/database.php` configuration file:

'default' => [
Expand Down

0 comments on commit 5da9911

Please sign in to comment.