lastrowcache

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearCache

func ClearCache()

func DisableEnableCache

func DisableEnableCache(isEnable bool) error

func DisableEnableMetrics

func DisableEnableMetrics(isEnable bool) error

func Get

func Get(db, rp string, seriesKey []byte, fieldKeys []string) (int64, map[string]any, bool)

func GetCacheMetrics

func GetCacheMetrics() *ristretto.Metrics

func InitCache

func InitCache() error

func IsLastRowCacheEnabled

func IsLastRowCacheEnabled() bool

func RestartCache

func RestartCache() error

func Set

func Set(db, rp string, seriesKey []byte, nCacheValue *CacheValue) bool

func SetLastRowCacheEnabled

func SetLastRowCacheEnabled(isEnable bool)

func SetRow

func SetRow(db, rp string, seriesKey []byte, row *influx.Row) bool

func SetRows

func SetRows(db, rp string, rows *[]influx.Row) bool

func UpdateCacheMaxCost

func UpdateCacheMaxCost(maxCost int64)

Types

type CacheValue

type CacheValue struct {
	// contains filtered or unexported fields
}

func (*CacheValue) SetFields

func (c *CacheValue) SetFields(fields *sync.Map)

func (*CacheValue) SetTimestamp

func (c *CacheValue) SetTimestamp(timestamp int64)

Jump to

Keyboard shortcuts

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