cache

package
v1.106.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Cached

type Cached[T any] struct {
	// contains filtered or unexported fields
}

func NewCached

func NewCached[T any](getter func() T, timeToLive time.Duration) *Cached[T]

func (*Cached[T]) Get

func (c *Cached[T]) Get(ctx context.Context) T

Jump to

Keyboard shortcuts

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