cache

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeFieldName = "cache.type"

	TypeDefault = GoCacheType

	RedisType   = "redis"
	GoCacheType = "app"
)

Variables

View Source
var (
	UnknownCacheTypeError = errors.New("is unknown cache type")
)

Functions

func NewCache

func NewCache(config *Config, appConfig *app.Config, redisConfig *redis.Config, goCacheConfig *gocache.Config, informer log.Informer) (cache.CacheInterface, error)

func WithConfigurator

func WithConfigurator(
	configurator configurator.Configurator,
	config *Config,
	appConfig *app.Config,
	redisConfig *redis.Config,
	goCacheConfig *gocache.Config,
	informer log.Informer,
) (cache.CacheInterface, error)

Types

type Config

type Config struct {
	Type     string
	OnlyType string
}

func NewConfig

func NewConfig() *Config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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