kevy

RANDOMKEY

Return a random key from the keyspace.

语法RANDOMKEY
分组scan
参数个数1
起始版本1.0.0
标志readonly
复杂度O(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 兼容性full

← 全部命令