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

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

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

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by scotty_walker , a year 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.

Related Threads:

What is time complexity of the ltrim command in redis?
How to group time column into 5 second intervals and count rows using presto?
What is management command in redis?
How to get the time in ping?
How to get values for time intervals of hours in one day in sparql?
How to use redis-cli with redis on docker?