fix : add the tls support for the redis cache

This commit is contained in:
Manendra Pal Singh
2026-01-09 12:40:10 +05:30
parent bbc7ff91f9
commit 58457d53c2
3 changed files with 22 additions and 4 deletions

View File

@@ -19,7 +19,8 @@ func (c cacheProvider) New(ctx context.Context, config map[string]string) (defin
}
// Create cache.Config directly from map - validation is handled by cache.New
cacheConfig := &cache.Config{
Addr: config["addr"],
Addr: config["addr"],
UseTLS: config["use_tls"] == "true",
}
log.Debugf(ctx, "Cache config mapped: %+v", cacheConfig)
cache, closer, err := cache.New(ctx, cacheConfig)