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