cache

package
v2.0.0-dev.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 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 int, cacheMissingKey bool) *Cache

func (*Cache) Close

func (c *Cache) Close()

func (*Cache) Get

func (c *Cache) Get(key string) ([]api.Tuple, bool)

func (*Cache) Set

func (c *Cache) Set(key string, value []api.Tuple)

Jump to

Keyboard shortcuts

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