def ttl(self, name): "Returns the number of seconds until the key ``name`` will expire" return self.execute_command('TTL', name)