|
ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
|
CDN edge-cache tier - server glue (PC_ENABLE_EDGE_CACHE). More...
#include "protocore_config.h"Go to the source code of this file.
CDN edge-cache tier - server glue (PC_ENABLE_EDGE_CACHE).
Wires the pure engine (edge_cache) + async fetch (edge_fetch) into a PC: registers the cache as a middleware and installs the async-fetch poll hook, maps request path prefixes to upstream origins (fetched over pc_client), and serves hits with the constant-memory send-pump. A miss or a stale-entry revalidation suspends the client request and drives the origin fetch from the slot's poll, so the worker never stalls; every failure path fails open. Purge + stats round it out.
Definition in file edge_cache_proxy.h.