cache

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func NewCache

func NewCache() *Cache

func (*Cache) Del

func (_this *Cache) Del(key string)

func (*Cache) Get

func (_this *Cache) Get(key string) (interface{}, bool)

func (*Cache) Remember

func (_this *Cache) Remember(key string, f RememberFunc, second int) (value interface{})

func (*Cache) Set

func (_this *Cache) Set(key string, value interface{}, second int)

type RememberFunc

type RememberFunc func() interface{}

Jump to

Keyboard shortcuts

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