Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

Cache Functions


Typedefs

typedef cache_cache_t cache_cache_t
typedef void cache_cache_inc_frequency (void *a)
typedef apr_size_t cache_cache_get_size (void *a)
typedef const char * cache_cache_get_key (void *a)
typedef void cache_cache_free (void *a)

Functions

 CACHE_DECLARE (cache_cache_t *) cache_init(int max_entries
 CACHE_DECLARE (void) cache_free(cache_cache_t *c)
 CACHE_DECLARE (void *) cache_find(cache_cache_t *c
 CACHE_DECLARE (apr_status_t) cache_remove(cache_cache_t *c

Variables

apr_size_t max_size
apr_size_t cache_pqueue_get_priority get_pri
apr_size_t cache_pqueue_get_priority
cache_pqueue_set_priority 
set_pri
apr_size_t cache_pqueue_get_priority
cache_pqueue_set_priority
cache_pqueue_getpos 
get_pos
apr_size_t cache_pqueue_get_priority
cache_pqueue_set_priority
cache_pqueue_getpos cache_pqueue_setpos 
set_pos
apr_size_t cache_pqueue_get_priority
cache_pqueue_set_priority
cache_pqueue_getpos cache_pqueue_setpos
cache_cache_inc_frequency
inc_entry
apr_size_t cache_pqueue_get_priority
cache_pqueue_set_priority
cache_pqueue_getpos cache_pqueue_setpos
cache_cache_inc_frequency
cache_cache_get_size
size_entry
apr_size_t cache_pqueue_get_priority
cache_pqueue_set_priority
cache_pqueue_getpos cache_pqueue_setpos
cache_cache_inc_frequency
cache_cache_get_size cache_cache_get_key
key_entry
apr_size_t cache_pqueue_get_priority
cache_pqueue_set_priority
cache_pqueue_getpos cache_pqueue_setpos
cache_cache_inc_frequency
cache_cache_get_size cache_cache_get_key
cache_cache_free
free_entry
const char * key
void * entry

Typedef Documentation

typedef void cache_cache_free(void *a)
 

callback to free an entry

Definition at line 46 of file cache_cache.h.

typedef const char* cache_cache_get_key(void *a)
 

callback to get the key of a item

Definition at line 44 of file cache_cache.h.

typedef apr_size_t cache_cache_get_size(void *a)
 

callback to get the size of a item

Definition at line 42 of file cache_cache.h.

typedef void cache_cache_inc_frequency(void *a)
 

callback to increment the frequency of a item

Definition at line 40 of file cache_cache.h.

typedef struct cache_cache_t cache_cache_t
 

ADT for the cache

Definition at line 37 of file cache_cache.h.


Function Documentation

CACHE_DECLARE apr_status_t   ) 
 

remove an item from the cache

Parameters:
c the cache
entry the actual entry (from a find)

CACHE_DECLARE void *   ) 
 

find a entry in the cache, incrementing the frequency if found

Parameters:
c the cache
key the key

CACHE_DECLARE void   ) 
 

insert a entry into the cache

Parameters:
c the cache
entry the entry

Definition at line 78 of file cache_cache.c.

CACHE_DECLARE cache_cache_t  ) 
 

initialize the cache ADT

Parameters:
max_entries the number of entries in the cache
max_size the size of the cache
get_pri callback to get a priority of a entry
set_pri callback to set a priority of a entry
get_pos callback to get the position of a entry in the cache
set_pos callback to set the position of a entry in the cache
inc_entry callback to increment the frequency of a entry
size_entry callback to get the size of a entry
key_entry callback to get the key of a entry
free_entry callback to free an entry


Variable Documentation

void * entry
 

Definition at line 106 of file cache_cache.h.

Referenced by add_client(), apr_dir_open(), cleanup_tmp_dir(), explode_static_lib(), find_more_info(), gc(), gen_client(), and get_client().

apr_size_t cache_pqueue_get_priority cache_pqueue_set_priority cache_pqueue_getpos cache_pqueue_setpos cache_cache_inc_frequency cache_cache_get_size cache_cache_get_key cache_cache_free* free_entry
 

Definition at line 62 of file cache_cache.h.

apr_size_t cache_pqueue_get_priority cache_pqueue_set_priority cache_pqueue_getpos get_pos
 

Definition at line 62 of file cache_cache.h.

apr_size_t cache_pqueue_get_priority get_pri
 

Definition at line 62 of file cache_cache.h.

apr_size_t cache_pqueue_get_priority cache_pqueue_set_priority cache_pqueue_getpos cache_pqueue_setpos cache_cache_inc_frequency* inc_entry
 

Definition at line 62 of file cache_cache.h.

apr_sdbm_datum_t * key
 

Definition at line 167 of file apr_sdbm.h.

Referenced by add_extension_info(), AP_DECLARE(), ap_proxy_http_request(), ap_registry_get_server_root(), APR_DECLARE(), APR_OPTIONAL_FN_TYPE(), asn1_table_vhost_key(), cache_create_entity(), cache_select_url(), cgid_server(), cmd_rewritecond_parseflagfield(), cmd_rewriterule_parseflagfield(), dav_build_key(), DAV_DECLARE(), dav_fs_append_locks(), dav_fs_build_fname_key(), dav_fs_build_key(), dav_fs_create_lock(), dav_fs_find_lock(), dav_fs_get_locks(), dav_fs_has_locks(), dav_fs_refresh_locks(), dav_fs_remove_lock(), dav_fs_remove_locknull_state(), dav_gen_supported_methods(), dav_method_options(), dav_propdb_close(), dav_propdb_exists(), dav_propdb_get_rollback(), dav_propdb_open(), dav_propdb_output_value(), dav_propdb_remove(), dav_propdb_store(), do_expand(), doit(), dump_hash(), get_digest_rec(), getnkey(), GetServerVariable(), handle_printenv(), hash_addr(), htdbm_del(), htdbm_list(), htdbm_save(), htdbm_verify(), isapi_lookup(), log_script(), lookup_header(), make_allow(), mpm_merge_service_args(), mpm_service_install(), mpm_service_set_name(), mpm_service_uninstall(), rename_original_env(), serialize_table(), socket_userdata(), splpage(), ssl_configure_env(), ssl_init_CheckServers(), ssl_io_filter_Upgrade(), store_table(), sum_hash(), summation_test(), and trace_add().

apr_size_t cache_pqueue_get_priority cache_pqueue_set_priority cache_pqueue_getpos cache_pqueue_setpos cache_cache_inc_frequency cache_cache_get_size cache_cache_get_key* key_entry
 

Definition at line 62 of file cache_cache.h.

apr_size_t max_size
 

Definition at line 62 of file cache_cache.h.

apr_size_t cache_pqueue_get_priority cache_pqueue_set_priority cache_pqueue_getpos cache_pqueue_setpos set_pos
 

Definition at line 62 of file cache_cache.h.

apr_size_t cache_pqueue_get_priority cache_pqueue_set_priority set_pri
 

Definition at line 62 of file cache_cache.h.

apr_size_t cache_pqueue_get_priority cache_pqueue_set_priority cache_pqueue_getpos cache_pqueue_setpos cache_cache_inc_frequency cache_cache_get_size* size_entry
 

Definition at line 62 of file cache_cache.h.