9951 explained code solutions for 126 technologies


php-redisConnecting to Redis using unix socket


$r = new Redis();
$r->connect("/var/run/redis/redis-server.sock");ctrl + c
new Redis()

create Redis object

connect(

connect to specified unix socket

/var/run/redis/redis-server.sock

path to unix socket file from Redis configuration