cache

package
v2.0.2-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CDNNamespace        = "cdn"
	SchedulerNamespace  = "scheduler"
	SchedulersNamespace = "schedulers"
)

Variables

This section is empty.

Functions

func MakeCDNCacheKey

func MakeCDNCacheKey(hostname string, clusterID uint) string

func MakeCacheKey

func MakeCacheKey(namespace string, id string) string

func MakeSchedulerCacheKey

func MakeSchedulerCacheKey(hostname string, clusterID uint) string

func MakeSchedulersCacheKey

func MakeSchedulersCacheKey(hostname, ip string) string

Types

type Cache

type Cache struct {
	*cache.Cache
	TTL time.Duration
}

func New

func New(cfg *config.Config) (*Cache, error)

New cache instance

Jump to

Keyboard shortcuts

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