- Redis Basics
- Redis - Home
- Redis - Overview
- Redis - Environment
- Redis - Configuration
- Redis - Data types
- Redis Commands
- Redis - Commands
- Redis - Keys
- Redis - Strings
- Redis - Hashes
- Redis - Lists
- Redis - Sets
- Redis - Sorted Sets
- Redis - HyperLogLog
- Redis - Publish Subscribe
- Redis - Transactions
- Redis - Scripting
- Redis - Connections
- Redis - Server
- Redis Advanced
- Redis - Backup
- Redis - Security
- Redis - Benchmarks
- Redis - Client Connection
- Redis - Pipelining
- Redis - Partitioning
- Redis - Java
- Redis - Php
- Redis Useful Resources
- Redis - Quick Guide
- Redis - Useful Resources
- Redis - Discussion
Redis - Server Client Pause Command
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
To Continue Learning Please Login
Login with Google