Google News
logo
Redis - Quiz(MCQ)
What is time complexity for sets in redis?
A)
O(1)
B)
O(N)
C)
O(N*N)
D)
O(NLOGN)

Correct Answer :   O(1)


Explanation : In Redis, you can add, remove, and test for the existence of members in O(1) time complexity.

Advertisement