units

package
v0.0.0-...-61e4535 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cached

type Cached[K comparable, V any] struct {
	units.Cache[K, V]
}

func NewNumberCache

func NewNumberCache(freq, ttl time.Duration, u units.MeasureUnit, opt ...units.Option) (c *Cached[float64, any])

func NewStringCache

func NewStringCache(freq, ttl time.Duration, u units.MeasureUnit, opt ...units.Option) (c *Cached[string, any])

func (Cached[K, V]) Close

func (c Cached[K, V]) Close() error

Jump to

Keyboard shortcuts

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