Apache2
cache_util.h File Reference

Cache Storage Functions. More...

#include "mod_cache.h"
#include "apr_hooks.h"
#include "apr.h"
#include "apr_lib.h"
#include "apr_strings.h"
#include "apr_buckets.h"
#include "apr_md5.h"
#include "apr_pools.h"
#include "apr_optional.h"
#include "apr_want.h"
#include "httpd.h"
#include "http_config.h"
#include "ap_config.h"
#include "http_core.h"
#include "http_protocol.h"
#include "http_request.h"
#include "http_vhost.h"
#include "http_main.h"
#include "http_log.h"
#include "http_connection.h"
#include "util_filter.h"
#include "apr_uri.h"
#include "apr_atomic.h"
Include dependency graph for cache_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cache_enable
 
struct  cache_disable
 
struct  cache_server_conf
 
struct  cache_dir_conf
 
struct  cache_provider_list
 
struct  cache_request_rec
 

Macros

#define APR_WANT_STRFUNC
 
#define MAX(a, b)   ((a) > (b) ? (a) : (b))
 
#define MIN(a, b)   ((a) < (b) ? (a) : (b))
 
#define MSEC_ONE_DAY   ((apr_time_t)(86400*APR_USEC_PER_SEC)) /* one day, in microseconds */
 
#define MSEC_ONE_HR   ((apr_time_t)(3600*APR_USEC_PER_SEC)) /* one hour, in microseconds */
 
#define MSEC_ONE_MIN   ((apr_time_t)(60*APR_USEC_PER_SEC)) /* one minute, in microseconds */
 
#define MSEC_ONE_SEC   ((apr_time_t)(APR_USEC_PER_SEC)) /* one second, in microseconds */
 
#define DEFAULT_CACHE_MAXEXPIRE   MSEC_ONE_DAY
 
#define DEFAULT_CACHE_MINEXPIRE   0
 
#define DEFAULT_CACHE_EXPIRE   MSEC_ONE_HR
 
#define DEFAULT_CACHE_LMFACTOR   (0.1)
 
#define DEFAULT_CACHE_MAXAGE   5
 
#define DEFAULT_X_CACHE   0
 
#define DEFAULT_X_CACHE_DETAIL   0
 
#define DEFAULT_CACHE_STALE_ON_ERROR   1
 
#define DEFAULT_CACHE_LOCKPATH   "mod_cache-lock"
 
#define CACHE_LOCKNAME_KEY   "mod_cache-lockname"
 
#define CACHE_LOCKFILE_KEY   "mod_cache-lockfile"
 
#define CACHE_CTX_KEY   "mod_cache-ctx"
 
#define CACHE_IGNORE_HEADERS_SET   1
 
#define CACHE_IGNORE_HEADERS_UNSET   0
 
#define CACHE_IGNORE_SESSION_ID_SET   1
 
#define CACHE_IGNORE_SESSION_ID_UNSET   0
 

Typedefs

typedef struct cache_provider_list cache_provider_list
 

Functions

int ap_cache_check_no_cache (cache_request_rec *cache, request_rec *r)
 
int ap_cache_check_no_store (cache_request_rec *cache, request_rec *r)
 
int cache_check_freshness (cache_handle_t *h, cache_request_rec *cache, request_rec *r)
 
apr_status_t cache_try_lock (cache_server_conf *conf, cache_request_rec *cache, request_rec *r)
 
apr_status_t cache_remove_lock (cache_server_conf *conf, cache_request_rec *cache, request_rec *r, apr_bucket_brigade *bb)
 
cache_provider_listcache_get_providers (request_rec *r, cache_server_conf *conf)
 
const char * cache_table_getm (apr_pool_t *p, const apr_table_t *t, const char *key)
 
apr_status_t cache_strqtok (char *str, char **token, char **arg, char **last)
 
apr_table_tcache_merge_headers_out (request_rec *r)
 
int cache_use_early_url (request_rec *r)
 

Detailed Description

Cache Storage Functions.

Macro Definition Documentation

◆ CACHE_IGNORE_HEADERS_SET

#define CACHE_IGNORE_HEADERS_SET   1

◆ CACHE_IGNORE_HEADERS_UNSET

#define CACHE_IGNORE_HEADERS_UNSET   0

◆ CACHE_IGNORE_SESSION_ID_SET

#define CACHE_IGNORE_SESSION_ID_SET   1

◆ CACHE_IGNORE_SESSION_ID_UNSET

#define CACHE_IGNORE_SESSION_ID_UNSET   0