ristretto

package
v1.13.4 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache[K ristretto.Key, V any] struct {
	*ristretto.Cache[K, V]
	Conf Config[K, V]
}

func (*Cache[K, V]) Close

func (e *Cache[K, V]) Close() error

func (*Cache[K, V]) Config

func (c *Cache[K, V]) Config() any

func (*Cache[K, V]) Set added in v1.10.0

func (c *Cache[K, V]) Set() error

type Config

type Config[K ristretto.Key, V any] ristretto.Config[K, V]

func (*Config[K, V]) Build

func (c *Config[K, V]) Build() (*ristretto.Cache[K, V], error)

func (*Config[K, V]) Init added in v1.4.0

func (c *Config[K, V]) Init()

func (*Config[K, V]) InitBeforeInject

func (c *Config[K, V]) InitBeforeInject()

Jump to

Keyboard shortcuts

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