Class CorrIdCache¶
Defined in File common.h
Nested Relationships¶
Nested Types¶
Class Documentation¶
-
class CorrIdCache¶
bounded TTL cache of recent inter-daemon replies, keyed by correlation ID
Used by daemons to make command retries idempotent: when a tagged command is received whose correlation ID matches a cached entry, the previously-computed reply is replayed verbatim and the underlying handler is NOT re-invoked. Entries expire after TTL_SECONDS or when the cache reaches MAX_ENTRIES, whichever comes first. The cache is intentionally small and bounded; it guards only against same-second retries by DaemonClient::send.
The stored reply is the daemon’s bare retstring as it would have been written to the wire WITHOUT any correlation ID prefix; the caller is responsible for prepending the prefix on replay.