cache

package
v0.0.0-...-3d3f4ff Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: GPL-3.0 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 {
	*gocache.Cache
}

func NewCache

func NewCache() *Cache

NewCache create cache without limit

func NewLimitCache

func NewLimitCache(expiration, interval time.Duration) *Cache

NewLimitCache create cache with limit

func (Cache) Save

func (c Cache) Save(key string, msg interface{})

Save value by key permanently

Jump to

Keyboard shortcuts

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