当前位置:网站首页>Redis publier et s'abonner
Redis publier et s'abonner
2022-07-04 14:54:00 【Bugmaker Shen】
Redis Publier un abonnement (pub/sub) Est un mode de communication de messages:Expéditeur (pub) Envoyer un message,Abonnés (sub) Recevoir un message
Redis Les clients peuvent s'abonner à n'importe quel nombre de canaux
RedisPublications et abonnements
(1)Le client peut s'abonner au canal comme indiqué ci - dessous
(2)Après avoir envoyé un message à cette chaîne,Le message est envoyé au client de l'abonnement
Publier la pratique en ligne de commande d'abonnement
(1)Ouvrir un abonnement clientchannel1
SUBSCRIBE channel1
(2)Ouvrir un autre client,Voilà.channel1Publier un messagehello
publish channel1 hello
Note::Retour à1Est le nombre d'abonnés
(3)Ouvrez le premier client pour voir le message envoyé
Note::Le message publié n'est pas persistant,Si elle n'est pas reçue par le client abonnéhello,Seuls les messages publiés après l'abonnement peuvent être reçus
边栏推荐
- 如何配和弦
- Count the running time of PHP program and set the maximum running time of PHP
- What are the concepts of union, intersection, difference and complement?
- LVGL 8.2 LED
- Codeforce:c. sum of substrings
- 毕业季-个人总结
- Explain of SQL optimization
- 92. (cesium chapter) cesium building layering
- Graduation season - personal summary
- EventBridge 在 SaaS 企业集成领域的探索与实践
猜你喜欢
Leetcode T48: rotating images
电商系统中红包活动设计
深度学习 神经网络的优化方法
Ffprobe common commands
如何搭建一支搞垮公司的技术团队?
Leetcode 1200 minimum absolute difference [sort] the way of leetcode in heroding
Leetcode 61: rotating linked list
Ali was laid off employees, looking for a job n day, headhunters came bad news
The performance of major mainstream programming languages is PK, and the results are unexpected
自动控制原理快速入门+理解
随机推荐
Detailed explanation of visual studio debugging methods
First experience of ViewModel
曝光一下阿里的工资待遇和职位级别
SAIC Maxus officially released its new brand "mifa", and its flagship product mifa 9 was officially unveiled!
LVGL 8.2 Line
Digi XBee 3 rf: 4 protocols, 3 packages, 10 major functions
如何配和弦
remount of the / superblock failed: Permission denied
5g TV cannot become a competitive advantage, and video resources become the last weapon of China's Radio and television
Guitar Pro 8win10最新版吉他学习 / 打谱 / 创作
C language book rental management system
LVGL 8.2 Menu
Docker compose public network deployment redis sentinel mode
Data Lake (13): spark and iceberg integrate DDL operations
深度学习7 Transformer系列实例分割Mask2Former
局部修改-渐进型开发
各大主流编程语言性能PK,结果出乎意料
LeetCode 1200 最小绝对差[排序] HERODING的LeetCode之路
近一亿美元失窃,Horizon跨链桥被攻击事件分析
Ranking list of databases in July: mongodb and Oracle scores fell the most