// SPDX-License-Identifier: BUSL-1.1
//! Shared derived-result-cache invalidation sweep, used by every write and
//! object-lifecycle path that can make cached collection results stale. The
//! cache stores both aggregate and facet payloads.
//!
//! Keyed on `(database, tenant, "{collection}\0...")` — every cached entry for
//! a given collection shares that null-byte-terminated prefix (see
//! `aggregate_cache_key` in `cache_key.rs` and `facet_cache_key` in
//! `facet.rs`). Routing all invalidation through this method keeps the encoded
//! key invariant out of callers and evicts exactly one collection's entries.
use crateCoreLoop;