cache

package
v0.0.0-...-2a34ce9 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(k string) (interface{}, bool)

func GetFromFunc

func GetFromFunc[T any](k string, f CacheFunc) T

func GetInt

func GetInt(k string) (int, bool)

func GetString

func GetString(k string) (string, bool)

func GetValue

func GetValue(k string) (any, bool)

func MustGetInt

func MustGetInt(k string) int

func MustGetString

func MustGetString(k string) string

Types

type CacheFunc

type CacheFunc func() any

Jump to

Keyboard shortcuts

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