Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cached provides an in-memory read- and write-through cache for ponzu
func New ¶
New returns a new Cache with `ttl` duration that purges at `purge` intervals.
New("https://mycms.com", 5*time.Minute, 30*time.Second)
Click to show internal directories.
Click to hide internal directories.