httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Noordhuis <>
Subject Re: Help with apr mutex
Date Tue, 01 Mar 2011 17:11:15 GMT
On Tue, Mar 1, 2011 at 17:32, Joshua Marantz <> wrote:
> Is there any design doc or examples on how these can be used to, say, construct
> a server-wide cache that can be accessed from any of the child processes in
> (say) prefork mode?

I don't know of any design documents or tutorials but as to examples:

* slotmem is for fixed size caches, it's used by mod_proxy_balancer.c
to store state about its backends.

* socache is for dynamic caches, mod_ssl and mod_authn_socache.c
respectively cache SSL sessions and user credentials with it.

mod_authn_socache.c is a good starting point, it's less than 500 lines of code.

View raw message