Documentation
¶
Overview ¶
Package cache provides the ability to cache expensive resources
The cache is intended to not only cache HTTP response; but also expensive processing performed on the response. E.g., parsing JavaScript into a compiled AST.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache provides a simple cache of expensive resources. This is intended for a narrow scope, where a well-known set of resources can be cached. The cache has no eviction policy, so any cached resource will be kept indefinitely.
One example use case is to cached parsed JavaScript that is installed as polyfill in the browser.
Click to show internal directories.
Click to hide internal directories.