yt-dlp 2.7.2

🎬️ A Rust library (with auto dependencies installation) for Youtube downloading
Documentation
//! Cache module for storing video metadata and downloaded files.
//!
//! This module provides a tiered caching architecture with L1 (in-memory) and L2 (persistent)
//! layers. Users can enable any combination of:
//!
//! - **No cache**: Disable all cache features
//! - **Moka only** (`cache-memory`): Fast in-memory cache with TTL eviction
//! - **Persistent only** (`cache-json`, `cache-redb`, or `cache-redis`): Durable storage
//! - **Moka + persistent**: L1 memory cache backed by L2 persistent storage
//!
//! Multiple persistent backends can be compiled in simultaneously. If exactly one persistent
//! feature is enabled, it is selected automatically. If several are enabled,
//! `CacheConfig::persistent_backend` must be set explicitly.

pub mod backend;
pub mod config;
pub mod layer;
pub mod stores;

// Re-export store modules for backward compatibility
// Re-export main types
pub use config::CacheConfig;
#[cfg(persistent_cache)]
pub use config::PersistentBackendKind;
pub use files::DownloadCache;
pub use layer::CacheLayer;
// Re-export common structures
pub use playlist::CachedPlaylist;
pub use playlist::PlaylistCache;
pub use stores::{files, playlist, video};
pub use video::{CachedFile, CachedThumbnail, CachedVideo, VideoCache};

// Common types and traits
pub use crate::model::selector::{
    AudioCodecPreference, AudioQuality, FormatPreferences, VideoCodecPreference, VideoQuality,
};