Redis Pub/Sub: PUBLISH channel message
PUBLISH channel message
Redis PUBLISH command is used to post a message to a channel.
Syntax:
PUBLISH channel message
Available since
2.0.0.
Return Value
Integer reply: the number of clients that received the message.
Return Value Type
Integer
Example: Redis PUBLISH
redis 127.0.0.1:6379> PUBLISH mychannel "hello, i m here" (integer) 1
Previous:
PUBSUB
Next:
PUNSUBSCRIBE
- 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