Versions in this module Expand all Collapse all v0 v0.2.1 Dec 8, 2022 Changes in this version + var StorageTypes = [2]string + type Cache interface + Create func(ctx context.Context, model T) error + GetByKey func(ctx context.Context, key string) (obj *T, found bool, err error) + Update func(ctx context.Context, model T) error + type Storage struct + ContainerImageCache Cache[model.ContainerImage] + func InitMemoryCache(l logger.Logger) *Storage + func InitRedisCache(l logger.Logger, addr string, port string, hc health.Checker) *Storage + type StorageType int + const InMemory + const Redis + func StorageTypeFromString(value string) (StorageType, error) + func (s StorageType) String() string