cache

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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 NewCache

func NewCache(expireTime time.Duration, cacheMissingKey bool) *Cache

func (*Cache) Close

func (c *Cache) Close()

func (*Cache) Get

func (c *Cache) Get(key string) ([]map[string]any, bool)

func (*Cache) Set

func (c *Cache) Set(key string, value []map[string]any)

Jump to

Keyboard shortcuts

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