PSUBSCRIBE
Syntax
PSUBSCRIBE pattern [pattern ...]
Time complexity: O(N) where N is the number of patterns the client is already subscribed to.
Subscribes the client to the given patterns.
Supported glob-style patterns:
h?llo
subscribes tohello
,hallo
andhxllo
(matches a single character)h*llo
subscribes tohllo
,hallo
andheeeello
(matches a sequence of characters, possibly empty)h[ae]llo
subscribes tohello
andhallo,
but nothillo
(matches a single character from the list)
Use \
to escape special characters if you want to match them verbatim.