当前位置:网站首页>redis发布订阅命令行实现
redis发布订阅命令行实现
2022-07-05 06:00:00 【一个风轻云淡】
- 打开一个客户端订阅channel1
SUBSCRIBE channel1
2、打开另一个客户端,给channel1发布消息hello
publish channel1 hello
返回的1是订阅者数量
打开第一个客户端可以看到发送的消息
注:发布的消息没有持久化,如果在订阅的客户端收不到hello,只能收到订阅后发布的消息
边栏推荐
- 6. Logistic model
- The connection and solution between the shortest Hamilton path and the traveling salesman problem
- 7. Processing the input of multidimensional features
- Codeforces Round #716 (Div. 2) D. Cut and Stick
- Little known skills of Task Manager
- Daily question 2013 Detect square
- Convolution neural network -- convolution layer
- 剑指 Offer II 058:日程表
- leetcode-9:回文数
- Wazuh開源主機安全解决方案的簡介與使用體驗
猜你喜欢
全国中职网络安全B模块之国赛题远程代码执行渗透测试 //PHPstudy的后门漏洞分析
[cloud native] record of feign custom configuration of microservices
Sword finger offer 09 Implementing queues with two stacks
Scope of inline symbol
Little known skills of Task Manager
Pointnet++ learning
Using HashMap to realize simple cache
Introduction et expérience de wazuh open source host Security Solution
A misunderstanding about the console window
6. Logistic model
随机推荐
Time of process
2022 pole technology communication arm virtual hardware accelerates the development of Internet of things software
Educational codeforces round 109 (rated for Div. 2) C. robot collisions D. armchairs
数据可视化图表总结(一)
Wazuh開源主機安全解决方案的簡介與使用體驗
Implement an iterative stack
[jailhouse article] jailhouse hypervisor
6. Logistic model
Codeforces round 712 (Div. 2) d. 3-coloring (construction)
全国中职网络安全B模块之国赛题远程代码执行渗透测试 //PHPstudy的后门漏洞分析
[article de jailhouse] jailhouse hypervisor
CF1634E Fair Share
【Jailhouse 文章】Look Mum, no VM Exits
[practical skills] technical management of managers with non-technical background
1.14 - 流水线
Typical use cases for knapsacks, queues, and stacks
【Rust 笔记】14-集合(下)
Pointnet++ learning
7. Processing the input of multidimensional features
【Jailhouse 文章】Jailhouse Hypervisor