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

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

There is a newer version: 2.16.0
Show 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 - 2024 Weber Informatics LLC | Privacy Policy