MCPcopy Create free account
hub / github.com/06chaynes/http-cache / ServerCacheLayer

Class ServerCacheLayer

http-cache-tower-server/src/lib.rs:480–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478/// - Use a `CustomKeyer` that includes user/session identifiers in the cache key
479#[derive(Clone)]
480pub struct ServerCacheLayer<M, K = DefaultKeyer>
481where
482 M: CacheManager,
483 K: Keyer,
484{
485 manager: M,
486 keyer: K,
487 options: ServerCacheOptions,
488 metrics: Arc<CacheMetrics>,
489}
490
491impl<M> ServerCacheLayer<M, DefaultKeyer>
492where

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected