Documentation
¶
Overview ¶
Package cache provides bounded in-memory HTTP response caching.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{TTL: time.Minute, MaxBodySize: 1 << 20, MaxEntries: 1024, Methods: []string{"GET", "HEAD"}}
Functions ¶
func New ¶
func New(config ...Config) fh.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.