lua.SETNX_EXPIRE.lua Maven / Gradle / Ivy
if (redis.call('setnx', KEYS[1], ARGV[1]) == 1)
then
redis.call('expire', KEYS[1], ARGV[2])
return true
else
return false
end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy
if (redis.call('setnx', KEYS[1], ARGV[1]) == 1)
then
redis.call('expire', KEYS[1], ARGV[2])
return true
else
return false
end