Paul Querna wrote:
Ivan Ristic wrote:

I have a need to share a hash table among several processes. It's for an Apache 2 module. Is there a way to get an APR memory pool to use a pre-allocated shared memory segment? Or to initialize a pool with a custom allocator, one that only allocates data from shared memory?



An alternative might be using memcached via apr_memcache:

http://www.outoforder.cc/projects/libs/apr_memcache/

I plan on trying to get apr_memcache into APR-Util sooner or later. I wanted to write up a patch for mod_ssl to use it as a SSL Session storage backend first. I am already using it in my mod_gnutls to store SSL sessions.

It does sound like something I could use. I can definitely see the benefit of a cluster of web servers sharing the data. But I don't see a way to inspect the cache or persist the data stored in memcached in some other way. Is that possible?

--
Ivan Ristic (http://www.modsecurity.org)

Reply via email to