cache

package
Version: v0.0.0-...-16e8e7a Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 2 Imported by: 1

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 New

func New() *Cache

func (*Cache) CacheGet

func (c *Cache) CacheGet(key string) (data interface{}, found bool)

func (*Cache) CacheSet

func (c *Cache) CacheSet(key string, data interface{}, duration time.Duration)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL