Welcome Guest, Not a member yet? Register   Sign In
How to use redis?
#1

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?
Reply
#2

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

Predis
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(This post was last modified: 10-31-2022, 04:54 AM by groovebird.)

(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/libra...ching.html)
Now the connection is working. CI4 itself gives no exception if the connection fails.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB