load_cache

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadCache

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

func NewCache

func NewCache() *LoadCache

func (*LoadCache) Load

func (c *LoadCache) Load(key string) (interface{}, bool)

func (*LoadCache) LoadFromCacheOrRawDisk

func (c *LoadCache) LoadFromCacheOrRawDisk(file string) (interface{}, []byte, error)

func (*LoadCache) Put

func (c *LoadCache) Put(key string, data interface{}, ttl time.Duration)

func (*LoadCache) Remove

func (c *LoadCache) Remove(key string)

Jump to

Keyboard shortcuts

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