PingAccess Agent SDK for C
|
Go to the source code of this file.
Functions | |
apr_status_t | paa_cache_zmq_create (apr_pool_t *pool, const paa_config *config, const paa_cache **impl) |
Header for the paa_cache ZeroMQ implementation.
apr_status_t paa_cache_zmq_create | ( | apr_pool_t * | pool, |
const paa_config * | config, | ||
const paa_cache ** | impl | ||
) |
Creates an instance of a cache using ZeroMQ.
This cache implementation uses ZeroMQ to share cache entries across PingAccess agents in other processes on the localhost. It is multithread-safe and uses ZeroMQ for all synchronization amongst threads.
When bounded, the cache evicts entries in LRU order once the configured maximum number of entries is reached. Eviction will bring the total number of entries below a configured high watermark.
Regardless of bound, the cache will also periodically sweep for stale entries, governed by a configurable search interval and a token search limit.
This implementation's invalidate_scope function only invalidates the scope for the local worker process, it makes no attempt to invalidate entries throughout the cache network.
This implementation expects the following keys from the configuration:
pool | the pool in which to allocate the structure |
config | the configuration used to configure the implementation |
impl | the output, populated on success |