Versions in this module Expand all Collapse all v1 v1.4.0 Nov 24, 2025 v1.3.0 Nov 4, 2025 Changes in this version + type Algorithm int + const Brotli + const Gzip + const Snappy + func (a Algorithm) String() string + type BrotliCache struct + func NewBrotli(config BrotliConfig) (*BrotliCache, error) + func (c *BrotliCache) Delete(key string) + func (c *BrotliCache) Get(key string) ([]byte, bool) + func (c *BrotliCache) Set(key string, value []byte) + func (c *BrotliCache) Stats() Stats + type BrotliConfig struct + Cache httpcache.Cache + Level int + type CompressCache = GzipCache + type GzipCache struct + func NewGzip(config GzipConfig) (*GzipCache, error) + func (c *GzipCache) Delete(key string) + func (c *GzipCache) Get(key string) ([]byte, bool) + func (c *GzipCache) Set(key string, value []byte) + func (c *GzipCache) Stats() Stats + type GzipConfig struct + Cache httpcache.Cache + Level int + type SnappyCache struct + func NewSnappy(config SnappyConfig) (*SnappyCache, error) + func (c *SnappyCache) Delete(key string) + func (c *SnappyCache) Get(key string) ([]byte, bool) + func (c *SnappyCache) Set(key string, value []byte) + func (c *SnappyCache) Stats() Stats + type SnappyConfig struct + Cache httpcache.Cache + type Stats struct + CompressedBytes int64 + CompressedCount int64 + CompressionRatio float64 + SavingsPercent float64 + UncompressedBytes int64 + UncompressedCount int64