On Tue, Mar 1, 2011 at 17:32, Joshua Marantz <jmara...@google.com> 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.