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 tohello,halloandhxllo(matches a single character)h*llosubscribes tohllo,halloandheeeello(matches a sequence of characters, possibly empty)h[ae]llosubscribes tohelloandhallo,but nothillo(matches a single character from the list)
Use \ to escape special characters if you want to match them verbatim.