What's new in Valkey 9.0? Discover new features and improvements. Read the announcement.

ASKING

Signals that a cluster client is following an -ASK redirect.

Usage
ASKING
Complexity
O(1)
Since
3.0.0
ACL Categories
@connection, @fast
Command flags
FAST

When a cluster client receives an -ASK redirect, the ASKING command is sent to the target node followed by the command which was redirected. This is normally done automatically by cluster clients.

If an -ASK redirect is received during a transaction, only one ASKING command needs to be sent to the target node before sending the complete transaction to the target node.

See ASK redirection in the Valkey Cluster Specification for details.

Replies

RESP2

RESP3