2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-15 06:12:59 +00:00
cheat.sheets/sheets/_redis/pubsub
2018-05-19 20:40:36 +00:00

19 lines
549 B
Plaintext

# Listen for messages published to channels matching the given patterns
PSUBSCRIBE pattern [pattern ...]
# Inspect the state of the Pub/Sub subsystem
PUBSUB subcommand [argument [argument ...]]
# Post a message to a channel
PUBLISH channel message
# Stop listening for messages posted to channels matching the given patterns
PUNSUBSCRIBE [pattern [pattern ...]]
# Listen for messages published to the given channels
SUBSCRIBE channel [channel ...]
# Stop listening for messages posted to the given channels
UNSUBSCRIBE [channel [channel ...]]