caching

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllCachers

func GetAllCachers() map[string]CacheProxySession

GetAllCachers get all cacher sessions

func InitCacheProxy

func InitCacheProxy(cachesConfig map[string]cachingenv.CacheConnectorConfig) bool

InitCacheProxy initialize cache proxy using configuration

Types

type CacheProxySession

type CacheProxySession interface {
	GetName() string
	GetConnectionString() string
	Initialized() bool
	Get(key string) ([]byte, error)
	Set(key string, value []byte, expire time.Duration) bool
}

CacheProxySession cache proxy session interface

func GetCacher

func GetCacher(name string) CacheProxySession

GetCacher get cacher session by category name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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