stats

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatsCacheStore

type StatsCacheStore interface {
	datarepo.CacheStore
	ClearStats()
	// number of Set operations performed in the CacheStore
	Sets() int64
	// number of Cache Hits
	Hits() int64
	// number of Cache Misses
	Miss() int64
	// number of Delete operations performed in the CacheStore
	Dels() int64
}

func NewStatsCacheStore

func NewStatsCacheStore(delegate datarepo.CacheStore) StatsCacheStore

Creates a new CacheStore that keeps hit/miss/set/del stats for an underlying/delegate CacheStore

Jump to

Keyboard shortcuts

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