Redis CLIENT PAUSE command is a connections control command, able to suspend all the Redis clients for the specified amount of time (in milliseconds). The command performs the following actions −
- It stops processing all the pending commands from normal and pub/sub clients. However, interactions with slaves will continue normally.
- It returns OK to the caller ASAP, so the CLIENT PAUSE command execution is not paused by itself.
- When the specified amount of time has elapsed, all the clients are unblocked: this will trigger the processing of all the commands accumulated in the query buffer of every client during the pause.
Return Value
Simple string reply − The command returns OK or an error if the timeout is invalid.
Syntax
Following is the basic syntax of Redis CLIENT PAUSE command.
redis 127.0.0.1:6379> CLIENT PAUSE timeout
Pingback: Redis - Server - Adglob Infosystem Pvt Ltd