Versions in this module Expand all Collapse all v0 v0.7.0 Jan 26, 2025 Changes in this version + func NewHTTPClient(cache *HTTPCache) *http.Client + type Adapter interface + Close func() + Delete func(key string) + Get func(key string) (string, bool) + Set func(key string, value string, ttl time.Duration) bool + type HTTPCache struct + func NewOtterCache(cache OtterCache, options ...Option) HTTPCache + func (cache *HTTPCache) With(options ...Option) + type Option func(*HTTPCache) + func WithTTL(ttl time.Duration) Option + type OtterCache interface + Close func() + Delete func(key string) + Get func(key string) (string, bool) + Set func(key string, value string, ttl time.Duration) bool + type RoundTripper struct + func NewRoundTripper(cache *HTTPCache) RoundTripper + func (roundTripper *RoundTripper) SetCache(cache *HTTPCache) + func (roundTripper *RoundTripper) SetClient(client *http.Client) + func (roundTripper RoundTripper) RoundTrip(request *http.Request) (*http.Response, error)