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

← すべてのコマンド