The Shared Object Cache provides a means to share simple data
across all a server's workers, regardless of thread
and process models. It is used where the advantages of sharing
data across processes outweigh the performance overhead of
inter-process communication.
The shared object cache as such is an abstraction. Five different
modules implement it. To use the cache, one or more of these modules
must be present, and configured.
The only configuration required is to select which cache provider
to use. This is the responsibility of modules using the cache, and
they enable selection using directives such as
CacheSocache,
AuthnCacheSOCache,
SSLSessionCache, and
SSLStaplingCache.
This makes use of a DBM hash file.
The choice of underlying DBM used may be configurable
if the installed APR version supports multiple DBM implementations.
Create a session cache based on the given configuration string.
The instance pointer returned in the instance parameter will be
passed as the first argument to subsequent invocations.
Initialize the cache. The cname must be of maximum length 16
characters, and uniquely identifies the consumer of the cache
within the server; using the module name is recommended, e.g.
"mod_ssl-sess". This string may be used within a filesystem
path so use of only alphanumeric [a-z0-9_-] characters is
recommended. If hints is non-NULL, it gives a set of hints for
the provider. Return APR error code.