Skip to main content

Module cache

Module cache 

Source
Expand description

Local file cache for the last-received EdgeConfig. When weave-server is unreachable on startup, the agent loads this file so local operation can continue with the previous mapping set.

Functionsยง

default_cache_path
Resolve the cache path for an edge: ${XDG_STATE_HOME:-~/.local/state}/edge-agent/config-cache-${edge_id}.json.
load
save