cachestore

package module
v0.0.0-...-fd22884 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 4 Imported by: 0

README

cachestore

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

func Delete

func Delete(key string)

func DeleteTag

func DeleteTag(tag string)

func GC

func GC()

func Get

func Get[T any](key string) (T, bool)

func GetStale

func GetStale[T any](key string) (T, bool)

func RunGCInterval

func RunGCInterval(ctx context.Context, d time.Duration)

func Set

func Set(key string, value any, opt *SetOptions)

func SetDisable

func SetDisable(value bool)

Types

type SetOptions

type SetOptions struct {
	Tag string
	TTL time.Duration
}

Jump to

Keyboard shortcuts

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