PSUBSCRIBE

This page documents the preview (v2.21) version. Preview includes features under active development and is for development and testing only. For production, use the stable (v2024.1) version.

Synopsis

PSUBSCRIBE pattern [pattern ...]

This command subscribes the client to the specified pattern(s). The client will receive a message whenever a publisher sends a message to a channel that matches any of the patterns that it has subscribed to.

See also

keys, pubsub, publish, subscribe, unsubscribe, psubscribe, punsubscribe