Versions in this module Expand all Collapse all v0 v0.18.1 Nov 22, 2023 Changes in this version + var ErrCacheNotFound = errors.New("cache not found") + type Cache struct + func New(opts ...CacheOption) *Cache + func (c *Cache) Delete(req *http.Request, opts *DeleteOptions) error + func (c *Cache) Match(req *http.Request, opts *MatchOptions) (*http.Response, error) + func (c *Cache) Put(req *http.Request, res *http.Response) error + type CacheOption func(*Cache) + func WithNamespace(namespace string) CacheOption + type DeleteOptions struct + IgnoreMethod bool + type MatchOptions struct + IgnoreMethod bool