ristretto

package
v1.231.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func NewCache

func NewCache(params CacheParams) (sr.Cache, error)

NewCache for ristretto.

Types

type CacheParams added in v1.65.0

type CacheParams struct {
	fx.In

	Lifecycle fx.Lifecycle
	Config    *Config
}

CacheParams for ristretto.

type Config

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

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