Files
test_deploy/internal/cache/client.go
Alex Shevchuk d84487d238 1
2025-08-18 17:12:04 +03:00

17 lines
267 B
Go

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)
}