Redis Psubscribe command
Redis Psubscribe command line with a subscription to one or more of the given pattern channels.
Each mode * as a sign, for example, * matches all channels beginning with it (it.news, it.blog, it.tweets etc.). news. * matches all news. at the beginning of the channel (news.it, news.global.today etc.), and so on.
grammar
redis Psubscribe basic command syntax is as follows:
redis 127.0.0.1:6379> PSUBSCRIBE pattern [pattern ...]
Available versions
> = 2.0.0
return value
Received information.
Examples
redis 127.0.0.1:6379> PSUBSCRIBE mychannel Reading messages... (press Ctrl-C to quit) 1) "psubscribe" 2) "mychannel" 3) (integer) 1