kevy

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]
分组replication
参数个数-3
起始版本3.0.0
标志readonly, blocking, extension
复杂度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)
Redis 兼容性kevy-only: waits until a (generation, offset) token has been applied, which is what makes read-your-writes possible across a failover

← 全部命令