loom.core.cache.dependency¶
Classes
Generational tags with monotonic counters in cache backend. |
- class loom.core.cache.dependency.GenerationalDependencyResolver(cache)[source]¶
Bases:
DependencyResolverGenerational tags with monotonic counters in cache backend.
- Parameters:
cache (CacheBackend)
- async fingerprint(tags)[source]¶
Compute a composite fingerprint from generation counters of all tags.
- async bump_from_events(events)[source]¶
Increment generation counters for all tags affected by mutation events.
- Parameters:
events (tuple[MutationEvent, ...]) – Mutation events to process.
- Return type:
None