redis-cli SUBSCRIBE news

Category: Databases & SQL

redis-cli SUBSCRIBE news

Listen to a pub/sub channel

Blocks and prints every message published to the news channel until you press Ctrl+C. Another client sends messages with PUBLISH news 'hello'. Related: PUBLISH.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.