kevy

RANDOMKEY

Return a random key from the keyspace.

SyntaxRANDOMKEY
Groupscan
Arity1
Since1.0.0
Flagsreadonly
ComplexityO(1) expected — each shard probes a random slot, and the origin folds the candidates through a reservoir weighted by shard key counts, so every key is equally likely
Redis compatibilityfull

← All commands