HRANDFIELDReturn 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 |