Skip to main content

Module prefetch

Module prefetch 

Source
Expand description

Prefetch module: pre-loading sequential media segments based on access patterns.

Provides PrefetchStrategy variants and a Prefetcher that warms a backing cache by predicting which keys will be accessed next.

Structs§

MemoryCache
Minimal in-memory Cache implementation backed by a Mutex<HashMap>.
Prefetcher
A prefetcher that warms a Cache based on the configured PrefetchStrategy.

Enums§

PrefetchStrategy
Strategy controlling which keys the prefetcher will pre-warm.

Traits§

Cache
Minimal read/write interface required by the prefetcher.