ristretto

package
v1.124.2 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache(params CacheParams) (*ristretto.Cache, error)

NewCache for ristretto.

Types

type CacheParams added in v1.65.0

type CacheParams struct {
	fx.In

	Lifecycle fx.Lifecycle
	Config    *Config
	Version   version.Version
}

CacheParams for ristretto.

type Config

type Config struct {
	NumCounters int64 `yaml:"num_counters" json:"num_counters" toml:"num_counters"`
	MaxCost     int64 `yaml:"max_cost" json:"max_cost" toml:"max_cost"`
	BufferItems int64 `yaml:"buffer_items" json:"buffer_items" toml:"buffer_items"`
}

Config for ristretto.

Directories

Path Synopsis
telemetry

Jump to

Keyboard shortcuts

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