Example #1
0
<?php

$h = new zredis();
$h->connect();
$h->set("key", "val");
echo $h->get("key");
Example #2
0
<?php

$h = new zredis();
$h->connect('/tmp/redis.sock');
$h->set("key", "val");
echo $h->get("key");