0

Since I wasnt able to use Redis::keys, Redis::scan,and any other functions except Redis::get and Redis::set while using Predis(Error: Cannot use 'KEYS' with redis-cluster), I decided to switch to Phpredis. I was able to setup and use it successfully with a newly setup Laravel 6.20 project but it throws the above mentioned issue while integrating it with an already exisiting Laravel 6.20 project which was functioning on Predis till now.

On reverse engineering, found that ../vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php file accesses host in protected function formatHost as $options['host'] instead of $options[0]['host']. But since changes cant be made to vendor files, can anyone help with a proper solution to successfully switch from Predis to Phpredis?

0 Answers0