Complete the code to remove the expiration from the key 'session'.
PERSIST [1]The PERSIST command removes the expiration from the specified key. Here, the key is 'session'.
Complete the code to check if the expiration was removed from the key 'user123'.
TTL [1]The TTL command returns the time to live of a key. Using 'user123' checks the expiration of that key.
Fix the error in the command to remove expiry from the key 'cache'.
PERSIST [1]The key name must exactly match the key you want to remove expiry from. Here, 'cache' is correct.
Fill both blanks to remove expiry from 'token' and check its TTL.
PERSIST [1] TTL [2]
First, remove expiry from the key 'token' using PERSIST. Then check TTL of 'token' to confirm expiry is removed.
Fill all three blanks to remove expiry from 'auth', check TTL, and set expiry to 60 seconds if TTL is -1.
PERSIST [1] TTL [2] EXPIRE [3] 60
Remove expiry from 'auth' with PERSIST, check TTL of 'auth', then set expiry to 60 seconds if needed.