Redis реализует механизм обмена сообщениями публикации / подписки.
Его концепция проста: издатель отправляет сообщение по каналу. Его получают несколько подписчиков.
Подпишитесь на канал, используя
SUBSCRIBE <channel>Publish to a channel using
PUBLISH <channel> <message>Example:
SUBSCRIBE dogs
In another redis-cli
window, type:
PUBLISH dogs "Roger"
Messages will be sent to the subscribers, and they’ll by default display the kind of event, the channel, and the message:

Subscribers can listen on multiple channels:
SUBSCRIBE dogs catsand will receive messages coming from all of them.
More redis tutorials:
- Introduction to Redis
- How to install Redis
- First steps with Redis
- Redis Lists
- Using Redis Sets
- How to use Redis Sorted Lists
- How to use Redis Hashes
- Redis Publish/subscribe