Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRefreshUpstreamBadStatusCode = errors.New("invalid upstream status code")
Functions ¶
This section is empty.
Types ¶
type Refresh ¶
type Refresh struct {
// contains filtered or unexported fields
}
Refresh is responsible for background refreshing of cache entries. It periodically samples random shards and randomly selects "cold" entries (from the end of each shard's InMemoryStorage list) to refreshItem if necessary. Communication: provider->consumer (MPSC).
Click to show internal directories.
Click to hide internal directories.