load_cache

package
v3.9.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: GPL-3.0 Imports: 3 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 {
	sync.RWMutex
	// contains filtered or unexported fields
}

func GetCache

func GetCache() *Cache

func NewCache

func NewCache() *Cache

func (*Cache) Get

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

func (*Cache) NewNamespace

func (c *Cache) NewNamespace() *NNCache

func (*Cache) Purge

func (c *Cache) Purge()

func (*Cache) Remove

func (c *Cache) Remove(key string)

func (*Cache) Store

func (c *Cache) Store(key string, v interface{})

type NNCache

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

func (*NNCache) Get

func (c *NNCache) Get(key string) (interface{}, bool)

func (*NNCache) Remove

func (c *NNCache) Remove(key string)

func (*NNCache) Store

func (c *NNCache) Store(key string, v interface{})

Jump to

Keyboard shortcuts

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