What is the time complexity of mget() in redis?

by wilmer.lemke , in category: Third Party Scripts , a month ago

What is the time complexity of mget() in redis?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by scotty_walker , a month ago

@wilmer.lemke 

The time complexity of the mget() command in Redis is O(N), where N is the number of keys being requested. This is because the command retrieves and returns the values of multiple keys in one go, so the time it takes to execute the command is proportional to the number of keys requested.