Google News
logo
Redis - Quiz(MCQ)
Which of the following command used to Sets the expiry of the key after the specified time?
A)
EXISTS key
B)
EXPIRE key seconds
C)
EXPIREAT key timestamp
D)
PEXPIRE key milliseconds

Correct Answer :   EXPIRE key seconds


Explanation : EXPIRE key seconds : Sets the expiry of the key after the specified time.

Advertisement