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 holds the small expiring cache used wherever the app asks an
endpoint one batched question and wants to remember the answer for a while:
label resolution and rdf:type lookup after a query returns (internal/sparql),
and full-text connector discovery before one is built (internal/search).
They all do the same thing, so they share one implementation and one sweeper
goroutine rather than keeping a near-identical copy each.
Init starts the background sweeper, once per process. Called from the paths
that populate a cache rather than an init() so a process that never queries
(tests, the index builder) does not spawn a goroutine it has no use for.
type TTL[V any] struct {
// contains filtered or unexported fields
}
TTL is a concurrent map whose entries expire.
Expired entries are dropped on read, so correctness never depends on the
sweeper; the sweeper exists only to stop entries that are never read again
from pinning memory forever.