Complete the code to set a key with a value in Redis.
SET mykey [1]The SET command requires the key and the value. Here, the value is "Hello".
Complete the code to set a key with a value and an expiration time of 30 seconds.
SET mykey "Hello" [1] 30
The EX option sets the expiration time in seconds.
Fix the error in the command to set a key with expiration of 60 seconds.
SET mykey "World" [1]
The correct syntax to set expiration during SET is EX 60 for 60 seconds.
Fill both blanks to set a key with value and expiration in milliseconds.
SET mykey [1] [2] 15000
Use PX to set expiration in milliseconds and provide the value "Temporary".
Fill all three blanks to set a key with value and expiration, then check its TTL.
SET [1] [2] EX 20 TTL [3]
Set key session_token with value "abc123" and expiration 20 seconds, then check TTL of session_token.
