'redis' => [
'client' => env('REDIS_CLIENT', 'predis'),
'options' => [
'cluster' => env('REDIS_CLUSTER', 'redis'),
'prefix' => env(
'REDIS_PREFIX',
Str::slug(env('APP_NAME','laravel'), '_').'_database_'
),
'scheme' => env('REDIS_SCHEME', 'unix'),
],
'default' => [
'url' => env('REDIS_URL'),
'path' => env('REDIS_PATH', '/var/run/redis/redis-server.sock'),
'password' => env('REDIS_PASSWORD'),
'database' => env('REDIS_DB', 0),
],
'cache' => [
'url' => env('REDIS_URL'),
'path' => env('REDIS_PATH', '/var/run/redis/redis-server.sock'),
'password' => env('REDIS_PASSWORD'),
'database' => env('REDIS_CACHE_DB', 1),
],
],
Describe the bug
Just after upgrading to predis v3.0.0 connection fails with:
To Reproduce
Steps to reproduce the behavior:
composer.jsonrequirements from"predis/predis": "^2.4"to"predis/predis": "^3.0";composer update;artisan cache:clear;Expected behavior
artisan cache:clearfinishing with messageINFO Application cache cleared successfully.and no error.Versions
Code sample
N/A
Additional context
Laravel example for completion purposes. It happens just the same on a test app with predis being the single requirement. predis v2.4.0 works fine though.
.envcontains:config/database.phpcontais: