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 ¶
View Source
var Names = map[string]TimeseriesEvictionMethod{ "oldest": EvictionMethodOldest, "lru": EvictionMethodLRU, }
Names is a map of TimeseriesEvictionMethods keyed by string name
View Source
var Values = make(map[TimeseriesEvictionMethod]string)
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
Click to show internal directories.
Click to hide internal directories.