pub struct HeaderCache { /* private fields */ }Expand description
A per-mount cache of resolved files keyed by track id; an entry
self-invalidates when the track’s content_version changes. Backed by
quick_cache: S3-FIFO eviction, byte-weighted, internally sharded.
Implementations§
Source§impl HeaderCache
impl HeaderCache
pub fn new(mode: Mode) -> HeaderCache
pub fn with_budget(mode: Mode, budget: u64) -> HeaderCache
Sourcepub fn retain(&self, live: &HashSet<i64>)
pub fn retain(&self, live: &HashSet<i64>)
Drop cached resolutions for tracks no longer present (live = current ids).
Auto Trait Implementations§
impl !RefUnwindSafe for HeaderCache
impl !UnwindSafe for HeaderCache
impl Freeze for HeaderCache
impl Send for HeaderCache
impl Sync for HeaderCache
impl Unpin for HeaderCache
impl UnsafeUnpin for HeaderCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more