I have a database with TTL on the keys.
I also have a script which runs periodically to reset the TTL of all the keys to its default value (here 20 secs):
local matches = redis.call('KEYS', '*') for _,key in ipairs(matches) do redis.call('SETEX', key, 20, -1) end
My question - is it possible that a key will expire WHILE the above script is running.
I know the Lua scripts are atomic (http://redis.io/commands/EVAL, "Atomicity of scripts") but im not sure this also applies to expiration events.
Thanks