cache

package
v0.0.0-...-ac9cef7 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(k any) (any, bool)

func Refresh

func Refresh()

func Set

func Set(k, v any, expire time.Duration)

Types

type CachedItem

type CachedItem struct {
	Expire     time.Duration
	CachedTime int64 // a timestamp
	Value      any
}

type Memory

type Memory struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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