melodycasinillo's avatar

Please make sure the PHP Redis extension is installed and enabled

to utilize the Predis extension, you should change the REDIS_CLIENT environment variable from phpredis to predis: on config/database.php

'redis' => [

'client' => env('REDIS_CLIENT', 'predis'),

// Rest of Redis configuration...

],

0 likes
4 replies
abhijeet9920's avatar

Hello @melodycasinillo ,

Before using redis, make sure php-redis library is properly configured. To check if redis is enabled, create a new info.php file. Add below line

<?php phpinfo(); ?>

And search for redis keyword.

You can also run below commands

php.exe -i | findStr -i "mongo" #for windows
php -i | grep -i "mongo" # for linux

If missing, please refer following guides

sayhicoelho's avatar

Fixed my issue after installing predis/predis and setting REDIS_CLIENT=predis! Thanks!

Please or to participate in this conversation.