create_l2_cache_optional

Function create_l2_cache_optional 

Source
pub async fn create_l2_cache_optional(
    config: L2Config,
    metrics: CacheMetrics,
) -> Option<L2Cache>
Expand description

Helper function to create L2 cache with graceful fallback

If Redis is unavailable, returns None and logs a warning. This allows the application to continue with L1-only caching.