Blame modules/cache/cache_storage.h

Packit 90a5c9
/* Licensed to the Apache Software Foundation (ASF) under one or more
Packit 90a5c9
 * contributor license agreements.  See the NOTICE file distributed with
Packit 90a5c9
 * this work for additional information regarding copyright ownership.
Packit 90a5c9
 * The ASF licenses this file to You under the Apache License, Version 2.0
Packit 90a5c9
 * (the "License"); you may not use this file except in compliance with
Packit 90a5c9
 * the License.  You may obtain a copy of the License at
Packit 90a5c9
 *
Packit 90a5c9
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 90a5c9
 *
Packit 90a5c9
 * Unless required by applicable law or agreed to in writing, software
Packit 90a5c9
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 90a5c9
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 90a5c9
 * See the License for the specific language governing permissions and
Packit 90a5c9
 * limitations under the License.
Packit 90a5c9
 */
Packit 90a5c9
Packit 90a5c9
/**
Packit 90a5c9
 * @file cache_storage.h
Packit 90a5c9
 * @brief Cache Storage Functions
Packit 90a5c9
 *
Packit 90a5c9
 * @defgroup Cache_storage  Cache Storage Functions
Packit 90a5c9
 * @ingroup  MOD_CACHE
Packit 90a5c9
 * @{
Packit 90a5c9
 */
Packit 90a5c9
Packit 90a5c9
#ifndef CACHE_STORAGE_H
Packit 90a5c9
#define CACHE_STORAGE_H
Packit 90a5c9
Packit 90a5c9
#ifdef __cplusplus
Packit 90a5c9
extern "C" {
Packit 90a5c9
#endif
Packit 90a5c9
Packit 90a5c9
#include "mod_cache.h"
Packit 90a5c9
#include "cache_util.h"
Packit 90a5c9
Packit 90a5c9
/**
Packit 90a5c9
 * cache_storage.c
Packit 90a5c9
 */
Packit 90a5c9
int cache_remove_url(cache_request_rec *cache, request_rec *r);
Packit 90a5c9
int cache_create_entity(cache_request_rec *cache, request_rec *r,
Packit 90a5c9
                        apr_off_t size, apr_bucket_brigade *in);
Packit 90a5c9
int cache_select(cache_request_rec *cache, request_rec *r);
Packit 90a5c9
Packit 90a5c9
/**
Packit 90a5c9
 * invalidate a specific URL entity in all caches
Packit 90a5c9
 *
Packit 90a5c9
 * All cached entities for this URL are removed, usually in
Packit 90a5c9
 * response to a POST/PUT or DELETE.
Packit 90a5c9
 *
Packit 90a5c9
 * This function returns OK if at least one entity was found and
Packit 90a5c9
 * removed, and DECLINED if no cached entities were removed.
Packit 90a5c9
 * @param cache cache_request_rec
Packit 90a5c9
 * @param r request_rec
Packit 90a5c9
 */
Packit 90a5c9
int cache_invalidate(cache_request_rec *cache, request_rec *r);
Packit 90a5c9
Packit 90a5c9
apr_status_t cache_generate_key_default(request_rec *r, apr_pool_t* p,
Packit 90a5c9
        const char **key);
Packit 90a5c9
Packit 90a5c9
/**
Packit 90a5c9
 * Merge in cached headers into the response
Packit 90a5c9
 * @param h cache_handle_t
Packit 90a5c9
 * @param r request_rec
Packit 90a5c9
 * @param top headers to be applied
Packit 90a5c9
 * @param bottom headers to be overwritten
Packit 90a5c9
 * @param revalidation true if revalidation is taking place
Packit 90a5c9
 */
Packit 90a5c9
void cache_accept_headers(cache_handle_t *h, request_rec *r, apr_table_t *top,
Packit 90a5c9
        apr_table_t *bottom, int revalidation);
Packit 90a5c9
Packit 90a5c9
#ifdef __cplusplus
Packit 90a5c9
}
Packit 90a5c9
#endif
Packit 90a5c9
Packit 90a5c9
#endif /* !CACHE_STORAGE_H */
Packit 90a5c9
/** @} */