W3cubDocs

/Redis

RANDOMKEY

RANDOMKEY

Return a random key from the currently selected database.

Return value

Bulk string reply: the random key, or nil when the database is empty.

© 2009–2018 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/randomkey