cache

package
v0.0.0-...-816ca63 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVCache

type KVCache[T any] interface {
	Put(key string, value T) (previous T, err error)
	Get(key string) (value T, err error)
	Invalidate(key string) (value T, err error)
}

func New

func New[T any](size int) KVCache[T]

type KVEntry

type KVEntry[T any] struct {
	Key       string
	Value     T
	Timestamp int64
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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