kevy

HRANDFIELD

Return random fields from a hash; a negative count allows repeats, WITHVALUES pairs each with its value.

语法HRANDFIELD key [count [WITHVALUES]]
分组hash
参数个数-2
起始版本6.2.0
标志readonly
复杂度O(count) for the positive form (partial Fisher-Yates over a materialised field list), O(|count|) for the negative form
Redis 兼容性full

← 全部命令