Pub Sub Publish
# Redis Publish Command | Rookie Tutorial
# [Rookie Tutorial -- Learning not just technology, but also dreams!](#)
* (javascript:void(0);)
* (javascript:void(0);)
* (javascript:void(0);)
* (javascript:void(0))
Redis Tutorial
(#)(#)(#)(#)(#)
## Redis Commands
(#)(#)(#)(#)(#)(#)(#)(#)[Redis Pub/Sub](#)(#)(#)(#)(#)(#)(#)
## Redis Advanced Tutorial
[Redis Backup & Recovery](#)(#)(#)(#)(#)(#)(#)(#)
[](#)(#)
(#)[](#)
In-depth Exploration
Programming
Scripting Languages
Data Management
Computer
Scripts
Computer Hardware
Search
Development Tools
Programming Languages
Computer Science
# Redis Publish Command
!(#)[Redis Pub/Sub](#)
The Redis Publish command is used to send messages to specified channels.
### Syntax
The basic syntax of the redis Publish command is as follows:
redis 127.0.0.1:6379> PUBLISH channel message
### Available Version
>= 2.0.0
### Return Value
The number of subscribers who received the message.
### Example
redis 127.0.0.1:6379> PUBLISH mychannel "hello, i m here"(integer) 1
!(#)[Redis Pub/Sub](#)
YouTip