( querySource: QuerySource, agentId?: AgentId, )
| 671 | * expected, not a cache break. |
| 672 | */ |
| 673 | export function notifyCacheDeletion( |
| 674 | querySource: QuerySource, |
| 675 | agentId?: AgentId, |
| 676 | ): void { |
| 677 | const key = getTrackingKey(querySource, agentId) |
| 678 | const state = key ? previousStateBySource.get(key) : undefined |
| 679 | if (state) { |
| 680 | state.cacheDeletionsPending = true |
| 681 | } |
| 682 | } |
| 683 | |
| 684 | /** |
| 685 | * Call after compaction to reset the cache read baseline. |
no test coverage detected