cache

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileCache

func NewFileCache(numCounters, maxCost, bufferItems int64) (domain.LRUCache, error)

Types

type FileCache

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

func (*FileCache) Add

func (fc *FileCache) Add(key string, value []byte) (evicted bool)

func (*FileCache) Close added in v1.0.2

func (fc *FileCache) Close()

func (*FileCache) Get

func (fc *FileCache) Get(key string) (value []byte, ok bool)

func (*FileCache) Hits added in v1.0.2

func (fc *FileCache) Hits() uint64

func (*FileCache) Misses added in v1.0.2

func (fc *FileCache) Misses() uint64

Jump to

Keyboard shortcuts

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