cache

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: AGPL-3.0 Imports: 2 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[T any] struct {
	// contains filtered or unexported fields
}

func NewWithTTL

func NewWithTTL[T any](ttl time.Duration, loader func(key string) T) *Cache[T]

func (*Cache[T]) Clean

func (c *Cache[T]) Clean()

func (*Cache[T]) Load

func (c *Cache[T]) Load(key string) T

Jump to

Keyboard shortcuts

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