On 05.02.2013 18:12, Micha Lenk wrote: > Hi all, > > I am currently working on an Apache module that needs to maintain some > shared data that is used by all requests, on all workers. This data does > not need to be persistent, so I thought about using shared memory for > this task. Someone pointed me to mod_slotmem_shm (hi Rainer), but now I > am a bit lost on how to use it. > > Does anybody have a pointer to documentation or example source code on > how to use mod_slotmem_shm? Any suggestions are welcome.
I'd say a short overview is in: http://httpd.apache.org/docs/2.4/en/mod/mod_slotmem_shm.html and include/ap_slotmem.h Example code using it: modules/cluster/mod_heartmonitor.c should be simplest, look for slotmem and SLOTMEM in there. That should at least show how to bootstrap and use slotmem. Regards, Rainer