cache

package
v0.0.168 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

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

func NewMetrics

func NewMetrics(namespace string) *Metrics

func (*Metrics) SetSharedEvictions

func (m *Metrics) SetSharedEvictions(count uint64, store string)

func (*Metrics) SetSharedHits

func (m *Metrics) SetSharedHits(count uint64, store string)

func (*Metrics) SetSharedInsertions

func (m *Metrics) SetSharedInsertions(count uint64, store string)

func (*Metrics) SetSharedMisses

func (m *Metrics) SetSharedMisses(count uint64, store string)

type SharedCache

type SharedCache struct {
	Transaction *ttlcache.Cache[string, bool]
	// contains filtered or unexported fields
}

func NewSharedCache

func NewSharedCache() *SharedCache

func (*SharedCache) Start

func (d *SharedCache) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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