diff --git a/pkg/share/cache/memory/memory.go b/pkg/share/cache/memory/memory.go index 5741bf2b04..b0faa70b1a 100644 --- a/pkg/share/cache/memory/memory.go +++ b/pkg/share/cache/memory/memory.go @@ -41,6 +41,7 @@ type manager struct { cache gcache.Cache } +// New returns an implementation of a resource info cache that stores the objects in memory func New(m map[string]interface{}) (cache.ResourceInfoCache, error) { c := &config{} if err := mapstructure.Decode(m, c); err != nil { diff --git a/pkg/share/cache/redis/redis.go b/pkg/share/cache/redis/redis.go index 1a085012af..e71a457f01 100644 --- a/pkg/share/cache/redis/redis.go +++ b/pkg/share/cache/redis/redis.go @@ -44,6 +44,7 @@ type manager struct { redisPool *redis.Pool } +// New returns an implementation of a resource info cache that stores the objects in a redis cluster func New(m map[string]interface{}) (cache.ResourceInfoCache, error) { c := &config{} if err := mapstructure.Decode(m, c); err != nil { diff --git a/pkg/share/cache/warmup/cbox/cbox.go b/pkg/share/cache/warmup/cbox/cbox.go index f3a8504df3..7723eb138e 100644 --- a/pkg/share/cache/warmup/cbox/cbox.go +++ b/pkg/share/cache/warmup/cbox/cbox.go @@ -69,7 +69,7 @@ func parseConfig(m map[string]interface{}) (*config, error) { return c, nil } -// New returns a new implementation of the storage.FS interface that connects to EOS. +// New returns an implementation of cache warmup that connects to the cbox share db and stats resources on EOS func New(m map[string]interface{}) (cache.Warmup, error) { c, err := parseConfig(m) if err != nil {