The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
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.
Get returns a resource from the cache found by key, assignable to type T. If
key is not found, or the type is not T, ok will be false. Panics if c is nil.
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.