class Redis

def pttl(key)

Returns:
  • (Fixnum) - remaining time to live in milliseconds

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