Redis消息订阅
来源:互联网 发布:php签到思路 编辑:程序博客网 时间:2024/04/29 19:07
使用办法:
测试案例1:
消息发布端:
127.0.0.1:6379> publish news 'hello redis'(integer) 1127.0.0.1:6379> publish news 'hello publish'(integer) 1127.0.0.1:6379>
订阅端:
127.0.0.1:6379> subscribe newsReading messages... (press Ctrl-C to quit)1) "subscribe"2) "news"3) (integer) 11) "message"2) "news"3) "hello redis"1) "message"2) "news"3) "hello publish"
测试案例2
消息发布端:
127.0.0.1:6379> publish news 'hello redis'(integer) 1127.0.0.1:6379> publish newn 'hello word'(integer) 1127.0.0.1:6379>
消息订阅端:
127.0.0.1:6379> psubscribe new[sn]Reading messages... (press Ctrl-C to quit)1) "psubscribe"2) "new[sn]"3) (integer) 11) "pmessage"2) "new[sn]"3) "news"4) "hello redis"1) "pmessage"2) "new[sn]"3) "newn"4) "hello word"
0 0
- Redis-消息订阅
- Redis消息订阅
- redis消息订阅功能分析
- redis中的消息订阅
- Redis消息订阅
- redis 消息订阅
- Redis消息订阅发布
- redis发布订阅消息
- redis消息订阅发布
- redis 消息订阅和发布
- redis消息发送与订阅
- redis-消息发布与订阅
- redis消息队列订阅发布
- redis发布及订阅消息
- redis-消息订阅与发布
- Redis消息的发布/订阅
- redis 消息发布订阅与消息队列
- Redis lesson14 Redis 中的消息订阅
- 树链剖分理解&&poj 3237
- 37节循环嵌套!
- JAVA 并发编程-应用篇
- leetcode刷题,总结,记录,备忘 309
- GradeDescent algorithm (Matlab Code)
- Redis消息订阅
- erlang简单入门
- C# 图片旋转和获取原图片旋转角度
- 大型web系统负载均衡技术
- UIScrollView
- ASP.NET+SQLServer2008分页,方面简单实用
- 求二叉树的深度和宽度
- 网页文件上传
- 黑马程序员——Java之集合(上)