cache

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(cacheModule CacheModule) *cache2go.CacheTable

Types

type Cache

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

func NewCache

func NewCache(duration time.Duration) *Cache

func (*Cache) Get

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

func (*Cache) Set

func (c *Cache) Set(key interface{}, value interface{})

type CacheModule

type CacheModule string
const (
	CLUSTER      CacheModule = "CLUSTER"
	USER         CacheModule = "USER"
	CLUSTER_USER CacheModule = "CLUSTER_USER"

	OUT_OF_DATE = time.Minute * 5
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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