(
cls, *, loaded: Cache, key: HashKey, stateful_refs: set[str]
)
| 541 | |
| 542 | @classmethod |
| 543 | def new( |
| 544 | cls, *, loaded: Cache, key: HashKey, stateful_refs: set[str] |
| 545 | ) -> Cache: |
| 546 | return Cache( |
| 547 | defs=loaded.defs, |
| 548 | hash=key.hash, |
| 549 | cache_type=key.cache_type, |
| 550 | stateful_refs=stateful_refs, |
| 551 | hit=True, |
| 552 | meta=loaded.meta, |
| 553 | ) |
| 554 | |
| 555 | |
| 556 | class CacheContext(abc.ABC): |