当前位置:网站首页>redis发布订阅命令行实现
redis发布订阅命令行实现
2022-07-05 06:00:00 【一个风轻云淡】
- 打开一个客户端订阅channel1
SUBSCRIBE channel1

2、打开另一个客户端,给channel1发布消息hello
publish channel1 hello

返回的1是订阅者数量
打开第一个客户端可以看到发送的消息

注:发布的消息没有持久化,如果在订阅的客户端收不到hello,只能收到订阅后发布的消息
边栏推荐
- After setting up the database and website When you open the app for testing, it shows that the server is being maintained
- 6. Logistic model
- 常见的最优化方法
- Simple knapsack, queue and stack with deque
- leetcode-22:括号生成
- 个人开发的渗透测试工具Satania v1.2更新
- 剑指 Offer 05. 替换空格
- Educational Codeforces Round 107 (Rated for Div. 2) E. Colorings and Dominoes
- 对for(var i = 0;i < 5;i++) {setTimeout(() => console.log(i),1000)}的深入分析
- 【Rust 笔记】17-并发(下)
猜你喜欢

全国中职网络安全B模块之国赛题远程代码执行渗透测试 //PHPstudy的后门漏洞分析

Introduction and experience of wazuh open source host security solution
![[practical skills] how to do a good job in technical training?](/img/a3/7a1564cd9eb564abfd716fef08a9e7.jpg)
[practical skills] how to do a good job in technical training?
![[jailhouse article] performance measurements for hypervisors on embedded ARM processors](/img/c0/4843f887f77b80e3b2329e12d28987.png)
[jailhouse article] performance measurements for hypervisors on embedded ARM processors
![[article de jailhouse] jailhouse hypervisor](/img/f4/4809b236067d3007fa5835bbfe5f48.png)
[article de jailhouse] jailhouse hypervisor

Graduation project of game mall

Dynamic planning solution ideas and summary (30000 words)

Wazuh開源主機安全解决方案的簡介與使用體驗

R语言【数据集的导入导出】
![[jailhouse article] jailhouse hypervisor](/img/f4/4809b236067d3007fa5835bbfe5f48.png)
[jailhouse article] jailhouse hypervisor
随机推荐
Palindrome (csp-s-2021-palin) solution
The connection and solution between the shortest Hamilton path and the traveling salesman problem
leetcode-6110:网格图中递增路径的数目
1996. number of weak characters in the game
Personal developed penetration testing tool Satania v1.2 update
Daily question 1342 Number of operations to change the number to 0
Wazuh开源主机安全解决方案的简介与使用体验
One question per day 1765 The highest point in the map
卷积神经网络——卷积层
Convolution neural network -- convolution layer
剑指 Offer 04. 二维数组中的查找
Solution to the palindrome string (Luogu p5041 haoi2009)
对for(var i = 0;i < 5;i++) {setTimeout(() => console.log(i),1000)}的深入分析
Control unit
[jailhouse article] look mum, no VM exits
Sword finger offer 53 - I. find the number I in the sorted array
Alu logic operation unit
884. Uncommon words in two sentences
leetcode-556:下一个更大元素 III
Spark中groupByKey() 和 reduceByKey() 和combineByKey()