evictionmethods

package
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EvictionMethodOldest indicates that a time series cache object only holds values newer than an explicit date,
	// called the Oldest Cacheable Timestamp, which is calculated with this formula on each request:
	// time.Now().Add(-(config.ValueRetentionFactor * query.Step))
	// This policy is the more performant methodology, because out-of-cache-range determination does not require querying
	// the cache; thus the cache is only accessed for requests that are pre-determined to be cacheable
	EvictionMethodOldest = TimeseriesEvictionMethod(iota)
	// EvictionMethodLRU indicates a that a time series cache object hold up to ValueRetentionFactor number of
	// unique timestamps, removing the least-recently-used timestamps as necessary to to remain at the ValueRetentionFactor
	// This policy is the more compute-intensive, since we must maintain an LRU on each timestamp in each cache object,
	// and retrieve the object from cache on each request
	EvictionMethodLRU
)

Variables

Names is a map of TimeseriesEvictionMethods keyed by string name

Values is a map of TimeseriesEvictionMethods valued by string name

Functions

This section is empty.

Types

type TimeseriesEvictionMethod

type TimeseriesEvictionMethod int

TimeseriesEvictionMethod enumerates the methodologies for maintaining time series cache data

func (TimeseriesEvictionMethod) String

func (t TimeseriesEvictionMethod) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL