- Usage:
-
RANDOMKEY
- Complexity:
- O(1)
- Since:
- 1.0.0
-
Nil reply: when the database is empty.
-
Bulk string reply: a random key in database.
-
Null reply: when the database is empty.
-
Bulk string reply: a random key in the database.
Return a random key from the currently selected database.
RESP2 Reply
One of the following:
RESP3 Reply
One of the following: