CodeIgniter Forums
Using cache Redis questions - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Using cache Redis questions (/showthread.php?tid=76919)



Using cache Redis questions - MatheusCastro - 07-03-2020

Hello,
I have my redis server using docker.

I found the installation of phpredis a bit confusing to be honest, I couldn't even implement it.

At Codeigniter I saw that have an implementation of PredisHandler, but I didn't see anything in the documentation. Perhaps because the author no longer updates the project even though it is "stable".

Is PredisHandler recommended? Or would the best alternative be phpredis?

Do you know any place that has a more readable implementation of phpredis?

The implementation works perfectly when using Predis.


RE: Using cache Redis questions - jreklund - 07-03-2020

Hi, never used Docker myself so can't say how hard it's to install phpredis. I just use plain old Ubuntu for everything.
Code:
sudo apt-get install php-redis

There are updates being made everyday to framework, you can help if you want. Read more about how you can contribute here. Predis part of the user guide and phpunit tests have only made it to the development version, and will be available to the general public in the next release.

phpredis are the best, no question about it. It's a C-implementation, not build on PHP. Are you sure your extension got loaded in? Did you try a phpinfo() and see that's actually there.