![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
redis
麻婆2017
这个作者很懒,什么都没留下…
展开
-
redis-订阅消息demo
redis-订阅消息demo// An highlighted block/** * 发布/订阅消息类 * Author 麻破伦意识 * Date 2019/8/5 * Class Test */class Test{ protected $redis; protected $channels; public function __construct...原创 2019-08-09 16:54:50 · 206 阅读 · 0 评论 -
php利用redis实现互斥锁机制
知识必备:1、掌握redis的watch锁机制,文档链接:http://doc.redisfans.com/一、常量定义类:defined('WS_REDIS_VALUE') or define('WS_REDIS_VALUE', 'ws'); //ws存储redis键,作用:标识并发情况下ws协议的采集唯一锁机制defined('AFTER_TIME') or define('AF...原创 2019-08-09 17:40:40 · 2142 阅读 · 0 评论