class Redis

def ttl(key)

Get the time to live for a key.
def ttl(key)
  synchronize do
    @client.call(:ttl, key)
  end
end