![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
缓存机制
Ninth1010
这个作者很懒,什么都没留下…
展开
-
php操作redis常用方法
参考:https://www.cnblogs.com/aipiaoborensheng/p/5666005.html 1,connect 描述:实例连接到一个Redis. 参数:host: string,port: int 返回值:BOOL 成功返回:TRUE;失败返回:FALSE 示例: <?php $redis = new redis(); $result = $r...转载 2019-03-20 17:45:33 · 3268 阅读 · 0 评论 -
php操作memcache
1.实例化memcache: $m = new Memcache; $status = $m->connect("127.0.0.1",11211); $title = "状态:"; echo $title.($status?"success":"fail")."<hr/>"; 2.存入数据: $value_1 = "this is a simple data"...原创 2019-03-20 17:41:48 · 138 阅读 · 0 评论