ol.clave.acme.impl.directory-cache

Global directory cache with TTL for ACME directory responses.

ACME directories rarely change, so caching them avoids unnecessary network requests for long-running servers managing many domains.

The cache is keyed by directory URL with a 12-hour default TTL. Stale entries remain until replaced (no background cleanup).

default-ttl-ms

Default TTL of 12 hours in milliseconds.


cache-get

(cache-get url)
(cache-get url ttl-ms)

Returns cached directory for url if present and fresh, else nil.


cache-put!

(cache-put! url directory)

Stores directory in cache with current timestamp. Returns directory.


cache-clear!

(cache-clear!)

Clears entire directory cache. Useful for testing.


cache-evict!

(cache-evict! url)

Removes single entry from cache.