def ttl(self, name):
        "Returns the number of seconds until the key ``name`` will expire"
        return self.execute_command('TTL', name)
Returns the number of seconds until the key ``name`` will expire
stackoverflow/venv/lib/python3.6/site-packages/redis/client.py