Crate pingora_cache

Source
Expand description

The HTTP caching layer for proxies.

Re-exports§

pub use key::CacheKey;
pub use meta::CacheMeta;
pub use meta::CacheMetaDefaults;
pub use storage::HitHandler;
pub use storage::MissHandler;
pub use storage::PurgeType;
pub use storage::Storage;

Modules§

cache_control
Functions and utilities to help parse Cache-Control headers
eviction
Cache eviction module
filters
Utility functions to help process HTTP headers for caching
hashtable
Concurrent hash tables and LRUs
key
Cache key
lock
Cache lock
max_file_size
Set limit on the largest size to cache
meta
Metadata for caching
predictor
Cacheability Predictor
prelude
put
Cache Put module
storage
Cache backend storage abstraction
trace
Distributed tracing helpers

Structs§

HttpCache
The state machine for http caching
HttpCacheDigest
Information collected about the caching operation that will not be cleared
MemCache
Hash map based in memory cache
VarianceBuilder
A builder for variance keys, used for distinguishing multiple cached assets at the same URL. This is intended to be easily passed to helper functions, which can each populate a portion of the variance.

Enums§

CachePhase
This reflects the phase of HttpCache during the lifetime of a request
HitStatus
Freshness state of cache hit asset
NoCacheReason
The possible reasons for not caching
RespCacheable
Response cacheable decision

Functions§

set_compression_dict_path
Set the header compression dictionary, which helps serialize http header.