Redis Pub/Sub: PUBSUB
PUBSUB subcommand [argument [argument ...]]
Redis PUBSUB command is an introspection command that allows to inspecting the state of the Pub/Sub subsystem. It is composed of subcommands that are documented separately.
Syntax:
PUBSUB subcommand [argument [argument ...]]
Following listing shows some supported patterens in redis
- h?llo subscribes to hello, hallo and hxllo
- h*llo subscribes to hllo and heeeello
- h[ae]llo subscribes to hello and hallo, but not hillo
Available since
2.8.0.
Return Value
Array reply, a list of active channels.
Return Value Type
Array
Example: Redis PUBSUB
redis 127.0.0.1:6379> PUBSUB CHANNELS (empty list or set)
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework