Versions in this module Expand all Collapse all v0 v0.1.0 May 3, 2023 Changes in this version + const LogMessageWithDiskPartitionFields + func CacheModeIsFree(mode CacheResponseMode) bool + func NewDiskCache(roundTripper http.RoundTripper, cacheDir string, ...) http.RoundTripper + func NewFromCache(roundTripper http.RoundTripper, cache CachePartitionCreator, ...) http.RoundTripper + func NewMemCache(roundTripper http.RoundTripper, maxConcurrency int, ...) http.RoundTripper + func NewRedisCache(roundTripper http.RoundTripper, redisAddress string, maxConcurrency int, ...) http.RoundTripper + func Prune(baseDir string, now func() time.Time) + type CachePartitionCreator func(partitionKey string, expiresAt *time.Time) httpcache.Cache + type CacheResponseMode string + const CacheModeHeader + const ModeChanged + const ModeCoalesced + const ModeError + const ModeMiss + const ModeNoStore + const ModeRevalidated + const ModeSkip + const TokenBudgetIdentifierHeader + const TokenExpiryAtHeader + type RequestThrottlingTimes struct + func NewRequestThrottlingTimes(...) RequestThrottlingTimes