CodeIgniter Forums
How to use redis? - 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: How to use redis? (/showthread.php?tid=84680)



How to use redis? - groovebird - 10-29-2022

Hi,

i have a redis server running. In Config/Cache.php i set the handler to redis and set the credentials + the right host. I installed predis via composer. The cache is not working, because the cache item is always empty. What else i have to do in order to get it to work?


RE: How to use redis? - InsiteFX - 10-31-2022

This is for CodeIgniter 3 but should be easy to transfer over to CodeIgniter 4

Predis


RE: How to use redis? - groovebird - 10-31-2022

(10-31-2022, 12:27 AM)InsiteFX Wrote: This is for CodeIgniter 3 but should be easy to transfer over to CodeIgniter 4

Predis

This is all from the documentation of CI4 (https://codeigniter.com/user_guide/libraries/caching.html)
Now the connection is working. CI4 itself gives no exception if the connection fails.