ristretto

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	*ristretto.Cache
	Conf CacheConfig
}

func (*Cache) Close

func (e *Cache) Close() error

func (*Cache) Config

func (c *Cache) Config() any

func (*Cache) SetEntity

func (c *Cache) SetEntity()

type CacheConfig

type CacheConfig struct {
	NumCounters        int64
	MaxCost            int64
	BufferItems        int64
	Metrics            bool
	IgnoreInternalCost bool
}

func (*CacheConfig) Build

func (conf *CacheConfig) Build() *ristretto.Cache

Jump to

Keyboard shortcuts

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