cache

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 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 ResourceInfoCache added in v2.3.0

type ResourceInfoCache interface {
	Get(key string) (*provider.ResourceInfo, error)
	GetKeys(keys []string) ([]*provider.ResourceInfo, error)
	Set(key string, info *provider.ResourceInfo) error
	SetWithExpire(key string, info *provider.ResourceInfo, expiration time.Duration) error
}

ResourceInfoCache is the interface to implement caches for resource infos

type Warmup

type Warmup interface {
	GetResourceInfos() ([]*provider.ResourceInfo, error)
}

Warmup is the interface to implement cache warmup strategies.

Directories

Path Synopsis
warmup

Jump to

Keyboard shortcuts

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