CLIENT PAUSE timeout

    Time complexity: O(1)

    The command performs the following actions:

    • It stops processing all the pending commands from normal and pub/sub clients. However interactions with replicas will continue normally.
    • 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.
    • Pause the clients using
    • Turn one of the replicas into a master.
    • Reconfigure clients to connect with the new master.

    It is possible to send CLIENT PAUSE in a MULTI/EXEC block together with the command in order to get the current master offset at the time the clients are blocked. This way it is possible to wait for a specific offset in the replica side in order to make sure all the replication stream was processed.

    : The command returns OK or an error if the timeout is invalid.