Skip to main content

refresh_contexts

Function refresh_contexts 

Source
pub fn refresh_contexts(store: &Store) -> Result<ContextRefresh, StoreError>
Expand description

Refresh every cached context that has gone stale (its node or a neighbour changed) and prune entries whose node no longer exists. Only existing nodes that already have a cache entry are considered — this reconciles the cache with the current graph without eagerly materialising context for every node.

§Errors

Returns StoreError on query failure or if a cached entry cannot be decoded.