2808 explained code solutions for 75 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