Versions in this module Expand all Collapse all v1 v1.0.0 Aug 29, 2019 Changes in this version + func NewPersistent(transport http.RoundTripper, path string, TTL time.Duration) http.RoundTripper + func NewPersistentClient(path string, TTL time.Duration) (*http.Client, error) + func NewVolatile(transport http.RoundTripper, TTL time.Duration, maxItems int) http.RoundTripper + func NewVolatileClient(TTL time.Duration, maxItems int) *http.Client + type Cache interface + Get func(u *url.URL) (*entry, error) + Put func(u *url.URL, data []byte) error + type CachedRoundTrip struct + Cache Cache + TTL time.Duration + Transport http.RoundTripper + func (c *CachedRoundTrip) RoundTrip(req *http.Request) (*http.Response, error)