RANDOMKEY
- Usage:
-
RANDOMKEY
- Complexity:
- O(1)
- Since:
- 1.0.0
- ACL Categories:
- @keyspace, @read, @slow
Return a random key from the currently selected database.
Reply
One of the following:
- Null: when the database is empty.
- String: a random key in the database.