Expand description
Namespacing decorator — prefixes ids so multiple stacks can share one
backend without collisions. See namespaced::NamespacedCache.
NamespacedCache — decorator that prefixes every ActionId before
it reaches the inner backend.
This is the bridge between federation and a shared cache: two child
stacks that both declare a node api would collide in a single Neo4j
database; wrapping each child’s handle in
NamespacedCache::new(inner, "parent-node::") keeps their keys
disjoint. Local per-stack SQLite caches (the federation default) do
not need this — separate files cannot collide.
Structs§
- Namespaced
Cache - Cache decorator that prefixes every id with a fixed namespace.