'Save a cached tile.'

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

    key = tile_key(layer, coord, format, self.key_prefix)
    cache_lifespan = layer.cache_lifespan
    if (cache_lifespan == 0):
        cache_lifespan = None
    self.conn.set(key, body, ex=cache_lifespan)
