Skip to content

Commit

Permalink
fix(go-redis): add default client name
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweak committed Oct 14, 2024
1 parent e6ee343 commit f00df78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go-redis/go-redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type Redis struct {
// Factory function create new Redis instance.
func Factory(redisConfiguration core.CacheProvider, logger core.Logger, stale time.Duration) (core.Storer, error) {
var options redis.UniversalOptions
options.ClientName = "souin-redis"

var hashtags string

Expand All @@ -53,9 +54,8 @@ func Factory(redisConfiguration core.CacheProvider, logger core.Logger, stale ti
}
} else {
options = redis.UniversalOptions{
Addrs: strings.Split(redisConfiguration.URL, ","),
PoolSize: 1000,
ClientName: "souin-redis",
Addrs: strings.Split(redisConfiguration.URL, ","),
PoolSize: 1000,
}
}

Expand Down

0 comments on commit f00df78

Please # to comment.