libredis - Redis 客户端开发包
未知
Linux
C/C++
软件简介
Libredis 是一个 Redis 的客户端开发包,采用C语言编写,同时还包含了一个
PHP 扩展。
示例代码:
$libredis = Libredis();
$connection = $libredis->get_connection("127.0.0.1");
//set a key:
$connection->set('hello', 'world', 200);
//set the key hello to 'world' with a timeout of 200ms
//get a key:
echo $connection->get('hello', 200); //get the value of key hello with a timeout of 200ms