cache

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lru

type Lru[T any] interface {
	Add(key string, value T)
	Get(key string) (T, bool)
}

func NewLru

func NewLru[T any](ctx context.Context, opts ...LruOption) Lru[T]

type LruOption

type LruOption func(*lruCacheOptions)

func WithCacheMaxTTL

func WithCacheMaxTTL(maxTTL string) LruOption

func WithCacheSize

func WithCacheSize(size int) LruOption

Jump to

Keyboard shortcuts

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