PSUBSCRIBE
Syntax
PSUBSCRIBE pattern [pattern ...]
Time complexity: O(N) where N is the number of patterns the client is already subscribed to.
ACL categories: @pubsub, @slow
Subscribes the client to the given patterns.
Supported glob-style patterns:
- h?llosubscribes to- hello,- halloand- hxllo(matches a single character)
- h*llosubscribes to- hllo,- halloand- heeeello(matches a sequence of characters, possibly empty)
- h[ae]llosubscribes to- helloand- hallo,but not- hillo(matches a single character from the list)
Use \ to escape special characters if you want to match them verbatim.