RANDOMKEY
Syntax
RANDOMKEY
- Available since:
- 1.0.0
- Time complexity:
- O(1)
- ACL categories:
-
@keyspace
,@read
,@slow
,
Return a random key from the currently selected database.
Return
Bulk string reply: the random key, or nil
when the database is empty.
Feedback
If you've found issues on this page, or have suggestions for improvement, please submit a request to merge or open an issue in the repository.