.spring-batch-redis.2.13.2.source-code.absttl.lua Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-batch-redis Show documentation
Show all versions of spring-batch-redis Show documentation
Spring Batch reader and writer implementations for Redis
-- Returns a key's absolute TTL in milliseconds
local ttl = redis.call('PTTL', KEYS[1])
if ttl < 0 then
return ttl
else
local e = redis.call('TIME')
e = e[1] * 1000 + e[2] / 1000
return e + ttl
end
© 2015 - 2024 Weber Informatics LLC | Privacy Policy