当前位置:网站首页>redis发布订阅命令行实现
redis发布订阅命令行实现
2022-07-05 06:00:00 【一个风轻云淡】
- 打开一个客户端订阅channel1
SUBSCRIBE channel1
2、打开另一个客户端,给channel1发布消息hello
publish channel1 hello
返回的1是订阅者数量
打开第一个客户端可以看到发送的消息
注:发布的消息没有持久化,如果在订阅的客户端收不到hello,只能收到订阅后发布的消息
边栏推荐
- LeetCode 1200.最小绝对差
- 【Rust 笔记】15-字符串与文本(下)
- Convolution neural network -- convolution layer
- 【Rust 笔记】16-输入与输出(上)
- Sword finger offer 05 Replace spaces
- Over fitting and regularization
- How many checks does kubedm series-01-preflight have
- Sword finger offer 09 Implementing queues with two stacks
- Detailed explanation of expression (csp-j 2021 expr) topic
- F - Two Exam(AtCoder Beginner Contest 238)
猜你喜欢
从Dijkstra的图灵奖演讲论科技创业者特点
剑指 Offer 35.复杂链表的复制
【Jailhouse 文章】Performance measurements for hypervisors on embedded ARM processors
[jailhouse article] look mum, no VM exits
1.15 - 输入输出系统
剑指 Offer 58 - II. 左旋转字符串
中职网络安全技能竞赛——广西区赛中间件渗透测试教程文章
In this indifferent world, light crying
leetcode-6110:网格图中递增路径的数目
Dynamic planning solution ideas and summary (30000 words)
随机推荐
剑指 Offer 04. 二维数组中的查找
[article de jailhouse] jailhouse hypervisor
【实战技能】如何做好技术培训?
2022年贵州省职业院校技能大赛中职组网络安全赛项规程
2022 pole technology communication arm virtual hardware accelerates the development of Internet of things software
Wazuh開源主機安全解决方案的簡介與使用體驗
Transform optimization problems into decision-making problems
【Rust 笔记】17-并发(下)
A problem and solution of recording QT memory leakage
884. Uncommon words in two sentences
Wazuh开源主机安全解决方案的简介与使用体验
Light a light with stm32
R language [import and export of dataset]
After setting up the database and website When you open the app for testing, it shows that the server is being maintained
One question per day 1765 The highest point in the map
[jailhouse article] performance measurements for hypervisors on embedded ARM processors
卷积神经网络——卷积层
Scope of inline symbol
Sword finger offer 04 Search in two-dimensional array
leetcode-6108:解密消息