cache

package
v0.15.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncCache

type SyncCache[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func NewSyncCache

func NewSyncCache[K comparable, V any]() *SyncCache[K, V]

func (*SyncCache[K, V]) Get

func (c *SyncCache[K, V]) Get(key K, fn func() (V, error)) (V, error)

Jump to

Keyboard shortcuts

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