]> granicus.if.org Git - apache/commit
Introduce the notion of a multi part cache object. Part of the cache_object
authorBill Stoddard <stoddard@apache.org>
Mon, 10 Sep 2001 18:09:56 +0000 (18:09 +0000)
committerBill Stoddard <stoddard@apache.org>
Mon, 10 Sep 2001 18:09:56 +0000 (18:09 +0000)
commitdbfc30e197d1c3aefe64a73a589bc29bedc491ae
tree53dd2e08eaabdbe6011bbe63667f99446e379cb7
parentdefe8c69a8d2ee8ceba3e14d1a440f90ed40e095
Introduce the notion of a multi part cache object. Part of the cache_object
is common across any cache implementation, the other part is private to
the particular implementation (eg, mem_cache_object_t/mod_mem_cache).
Use a cache_handle_t allocated out of the request pool to hold references
to the callback functions and common cache object.

The cache_handle_t contains implementation specific callback functions and
a reference to a common cache_object_t.  The cache_object_t contains
a reference to an implementation specific cache object extension (mem_cache_object_t
for example).

All this simplifies managing the callback function pointers (don't want to
save them in each cache entry) and collections of cache_object_t keyed
to a single url.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90994 13f79535-47bb-0310-9956-ffa450edef68
modules/experimental/cache_storage.c
modules/experimental/mod_cache.c
modules/experimental/mod_cache.h
modules/experimental/mod_mem_cache.c