! Cache status enum modeled after nginx's cache status defines. ! ! Maps to `ngx_http_cache.h` constants: ! `NGX_HTTP_CACHE_MISS=1` through `NGX_HTTP_CACHE_HIT=7`.
// Source: https://github.com/synctv-org/synctv | License: MIT | Copyright 2026 SyncTV Contributors
// Provided via justclaw.it.com; keep this notice with the code.
//! Cache status enum modeled after nginx's cache status defines.
//!
//! Maps to `ngx_http_cache.h` constants:
//! `NGX_HTTP_CACHE_MISS=1` through `NGX_HTTP_CACHE_HIT=7`.
use std::fmt;
/// Cache status modeled after nginx's cache status defines
/// (`ngx_http_cache.h`: `NGX_HTTP_CACHE_MISS=1` through `NGX_HTTP_CACHE_HIT=7`).
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum CacheStatus {
/// The requested data was found in cache and served directly.
Hit,
/// The requested data was not found in cache and had to be fetched.
Miss,
/// The cached entry existed but its TTL had elapsed.
Expired,
///
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key