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

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

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

注:发布的消息没有持久化,如果在订阅的客户端收不到hello,只能收到订阅后发布的消息
边栏推荐
- leetcode-6109:知道秘密的人数
- The number of enclaves
- [jailhouse article] look mum, no VM exits
- Bit mask of bit operation
- QT判断界面当前点击的按钮和当前鼠标坐标
- 2022 pole technology communication arm virtual hardware accelerates the development of Internet of things software
- 2020ccpc Qinhuangdao J - Kingdom's power
- leetcode-6108:解密消息
- 个人开发的渗透测试工具Satania v1.2更新
- Codeforces round 712 (Div. 2) d. 3-coloring (construction)
猜你喜欢
![[cloud native] record of feign custom configuration of microservices](/img/39/05cf7673155954c90e75a8a2eecd96.jpg)
[cloud native] record of feign custom configuration of microservices

Personal developed penetration testing tool Satania v1.2 update

Sword finger offer 06 Print linked list from beginning to end

【实战技能】如何做好技术培训?

YOLOv5-Shufflenetv2

Pointnet++ learning

【实战技能】非技术背景经理的技术管理

Sword finger offer 04 Search in two-dimensional array

Sword finger offer 05 Replace spaces

Smart construction site "hydropower energy consumption online monitoring system"
随机推荐
【Rust 笔记】17-并发(上)
Daily question - longest substring without repeated characters
Sword finger offer 58 - ii Rotate string left
[practical skills] how to do a good job in technical training?
Analysis of backdoor vulnerability in remote code execution penetration test / / phpstudy of national game title of national secondary vocational network security B module
leetcode-3:无重复字符的最长子串
剑指 Offer 53 - II. 0~n-1中缺失的数字
Common optimization methods
One question per day 1765 The highest point in the map
Dynamic planning solution ideas and summary (30000 words)
leetcode-556:下一个更大元素 III
剑指 Offer 05. 替换空格
CF1634E Fair Share
leetcode-9:回文数
剑指 Offer 09. 用两个栈实现队列
Dichotomy, discretization, etc
R language [import and export of dataset]
A problem and solution of recording QT memory leakage
Simple knapsack, queue and stack with deque
leetcode-22:括号生成