libredisRedis 客户端开发包

联合创作 · 2023-09-30 18:55

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
浏览 5
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报