cache

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLifeWindow  = 1 * time.Hour
	DefaultCleanWindow = 10 * time.Minute
)

Variables

This section is empty.

Functions

func DefaultConfig

func DefaultConfig(ts ...time.Duration) bigcache.Config

Types

type Cache

type Cache struct {
	*bigcache.BigCache
}

func New

func New(configs ...bigcache.Config) (*Cache, error)

func (*Cache) Get

func (c *Cache) Get(key string, entry interface{}) error

func (*Cache) Set

func (c *Cache) Set(key string, entry interface{}) error

Jump to

Keyboard shortcuts

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