package cache import "fmt" func New(c Config, t Type) (Client, error) { switch t { case ValkeyCacheType: return newValKeyCache(c) default: return nil, ErrUnknownCacheType } } func getKey(k string, t ValueType) string { return fmt.Sprintf("%s:%s", t, k) }