mirror of
https://github.com/MeshCore-Beacon/beacon-server.git
synced 2026-10-16 16:00:03 +00:00
feat(scopes): import cached regional MeshMapper catalogues
This commit is contained in:
Vendored
+5
@@ -80,6 +80,11 @@ func NewCachedReader(inner api.Reader, c *Client, ttl CacheTTLs) api.Reader {
|
||||
}
|
||||
}
|
||||
|
||||
// InvalidateScopeNames makes newly committed catalogue names available to filters.
|
||||
func (cr *CachedReader) InvalidateScopeNames(ctx context.Context) {
|
||||
cr.c.del(ctx, keyScopeNames)
|
||||
}
|
||||
|
||||
// InvalidateNode removes the cached entries for a node by UUID.
|
||||
// Should be called from the ingest path after a node upsert.
|
||||
func (cr *CachedReader) InvalidateNode(ctx context.Context, nodeID uuid.UUID) {
|
||||
|
||||
Reference in New Issue
Block a user