refresh

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MIT Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

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

func NewHelper

func NewHelper[K comparable, V any](options ...trcache.RootOption) (*Helper[K, V], error)

func (*Helper[K, V]) GetOrRefresh

func (r *Helper[K, V]) GetOrRefresh(ctx context.Context, c trcache.Cache[K, V], key K,
	options ...trcache.RefreshOption) (V, error)

Jump to

Keyboard shortcuts

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