Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexCache ¶
type IndexCache struct {
// contains filtered or unexported fields
}
func NewIndexCache ¶
func NewIndexCache(logger log.Logger, reg prometheus.Registerer, opts Opts) (*IndexCache, error)
NewIndexCache creates a new thread-safe LRU cache for index entries and ensures the total cache size approximately does not exceed maxBytes.
func (*IndexCache) SetPostings ¶
SetPostings sets the postings identfied by the ulid and label to the value v, if the postings already exists in the cache it is not mutated.
Click to show internal directories.
Click to hide internal directories.