local

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRistrettoCache

func NewRistrettoCache(config ...RistrettoConfig) (*ristrettoCache, error)

Types

type RistrettoConfig

type RistrettoConfig struct {
	NumCounters int64
	MaxCost     int64
	BufferItems int64
}

RistrettoConfig holds configuration for the in-memory Ristretto cache

func DefaultRistrettoConfig

func DefaultRistrettoConfig() RistrettoConfig

DefaultRistrettoConfig returns sensible default values for Ristretto

Jump to

Keyboard shortcuts

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