REPL.WAIT
kevy extension: on a replica, block until every shard has applied the given REPL.TOKEN (then reads are read-your-writes); +OK on success, -MISDIRECTED writer is <primary> on timeout or generation mismatch. Default TIMEOUT 1000 ms, hard cap 60 s. On a primary: immediate +OK.
REPL.WAIT gen offset [gen offset ...] [TIMEOUT milliseconds]
Complexity
O(S) — a barrier, not a keyspace op; the wall-clock cost is the replication lag, bounded by TIMEOUT (default 1s, hard-capped at 60s)
Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.
Redis compatibility
kevy only
kevy has this; Redis does not. waits until a (generation, offset) token has been applied, which is what makes read-your-writes possible across a failover