class Redis

def ttl(key)

Returns:
  • (Fixnum) - remaining time to live in seconds, or -1 if the

Parameters:
  • key (String) --
def ttl(key)
  synchronize do |client|
    client.call [:ttl, key]
  end
end