All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.spring-batch-redis.2.16.0.source-code.absttl.lua Maven / Gradle / Ivy

The newest version!
-- 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 - 2025 Weber Informatics LLC | Privacy Policy