cadrumo.application.modelo._transaction_catalogue_cache module¶
Per-calculation TransactionCatalogue read-through caching.
- class MemoizedTransactionCatalogueRepository(repository)[source]¶
Bases:
objectCache immutable catalogue reads across one source-mesh calculation.
Multiple enrolled ledger resolvers share the same repository during one calculation. The wrapper loads each full catalogue or exact date window at most once while delegating writes directly to the authority repository.
- Parameters:
repository (TransactionCatalogueRepositoryProtocol)
- load_for_date_range(start, end)[source]¶
Load an exact date-window catalogue at most once.
- Return type:
- Parameters:
- load_by_ids(transaction_ids)[source]¶
Load one canonical contributor-id set at most once.
- Return type:
- Parameters:
- partition_by_date_range(start, end)[source]¶
Load an exact date-window partition at most once.
- Return type:
- Parameters:
- save(catalogue)[source]¶
Delegate a
TransactionCataloguewrite to the authority repository.- Return type:
- Parameters:
catalogue (TransactionCatalogue)