cache

package
v0.0.0-...-afd8607 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: GPL-3.0 Imports: 3 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[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func New

func New[K comparable, V any](size int, ttl time.Duration) (*LRU[K, V], error)

func (*LRU[K, V]) Add

func (lru *LRU[K, V]) Add(k K, v V)

func (*LRU[K, V]) Get

func (lru *LRU[K, V]) Get(k K) (*V, bool)

Jump to

Keyboard shortcuts

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