Documentation ¶ Index ¶ Variables func CacheInit(cfg CacheCfg) error func GetKey(cacheName string, key string) (string, error) func SetKey(cacheName string, key string, value string, expiration *time.Duration) error func UpdateCacheMetrics() type CacheCfg Constants ¶ This section is empty. Variables ¶ View Source var ( Caches []gcache.Cache CacheNames []string CacheConfig []CacheCfg ) Functions ¶ func CacheInit ¶ func CacheInit(cfg CacheCfg) error func GetKey ¶ func GetKey(cacheName string, key string) (string, error) func SetKey ¶ func SetKey(cacheName string, key string, value string, expiration *time.Duration) error func UpdateCacheMetrics ¶ func UpdateCacheMetrics() UpdateCacheMetrics is called directly by the prom handler Types ¶ type CacheCfg ¶ type CacheCfg struct { Name string Size int TTL time.Duration Strategy string LogLevel *log.Level Logger *log.Entry } Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.