Which command in Redis is used to set a key 'user:100' with a value 'John Doe' that expires after 10 minutes? - Study24x7
Social learning Network
4 followers study24x7 04 Nov 2024 11:09 AM study24x7 study24x7

Which command in Redis is used to set a key "user:100" with a value "John Doe" that expires after 10 minutes?

A

SET user:100 "John Doe" EXPIRE 600

B

SET user:100 "John Doe" TTL 600

C

SET user:100 "John Doe" WITH EXPIRY 600

D

SETEX user:100 600 "John Doe"

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles