RandomkeyCommand: Contents
RANDOMKEY
Return value
RandomkeyCommand
#sidebar
GenericCommandsSidebar
RANDOMKEY
Time complexity: O(1)
Return a randomly selected key from the currently selected DB.
Return value
Singe line reply
, specifically the randomly selected key or an empty string is the database is empty.