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
Click to show internal directories.
Click to hide internal directories.