Welcome Guest, Not a member yet? Register   Sign In
Redis cache with socket


In Codeigniter 3, the Redis cache driver can connect via socket with this code :

PHP Code:
if ($config['socket_type'] === 'unix') {
    $success $this->_redis->connect($config['socket']);
} else { 
// tcp socket
    $success $this->_redis->connect($config['host'], $config['port'], $config['timeout']);

I can be wrong, but it seems like it's no longer supported by the RedisHandler in Codeigniter 4. Any reason for that change ?

Thanks for your help !

Any though on this ?

Have you tried putting the Unix socket path in the Redis config's 'host' value?

Theme © iAndrew 2016 - Forum software by © MyBB