– Deletes a key only if it has the value supplied as token local key = KEYS local token = ARGV
if redis.call('get', key) == token then
return redis.call('del', key)
else
return 0
end
– Deletes a key only if it has the value supplied as token local key = KEYS local token = ARGV
if redis.call('get', key) == token then
return redis.call('del', key)
else
return 0
end