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

Hello,

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

Any though on this ?
Reply
#3

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

You can use like this '/tmp/redis.sock'.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB