I know there are several ways to set a specific ttl for a key, but is there a way to add some extra time for a key which has a counting down ttl?
I know there are several ways to set a specific ttl for a key, but is there a way to add some extra time for a key which has a counting down ttl?
2
Answers
There’s no built-in way to extend TTL. You need to get the current TTL, and then add some more TTL to it.
Wrap these two steps into a Lua script: