'Save a cached tile.'

def save(self, body, layer, coord, format):

    mem = Client(self.servers)
    key = tile_key(layer, coord, format, self.revision, self.key_prefix)
    if (body is not None):
        body = b64encode(body).decode('ascii')
    mem.set(key, body, (layer.cache_lifespan or 0))
    mem.disconnect_all()
