cache

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.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 CacheValue

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

Adding a struct if in future we need a cleanup routine

type GlobalCache

type GlobalCache interface {
	Set(key string, value int)
	Get(key string) (int, bool)
	Delete(key string)
}

func Get

func Get() GlobalCache

func New

func New() GlobalCache

type GlobalCacheMap

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

func (*GlobalCacheMap) Delete

func (c *GlobalCacheMap) Delete(key string)

func (*GlobalCacheMap) Get

func (c *GlobalCacheMap) Get(key string) (int, bool)

func (*GlobalCacheMap) Set

func (c *GlobalCacheMap) Set(key string, value int)

Jump to

Keyboard shortcuts

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