测试redis有没有装成功小例子

xiaoxiao2021-02-28  93

范例: <?php   $redis = new redis();   $redis->connect('127.0.0.1', 6379);   $redis->set('test',"1111111111111");   var_dump($redis->exists('test'));  //结果:bool(true)  

?> 

返回值:Bool 成功返回:TRUE;失败返回:FALSE

转载请注明原文地址: https://www.6miu.com/read-69296.html

最新回复(0)