Skip to content

Commit 0d6842b

Browse files
authored
fix(go-redis): add default client name (#15)
* fix(go-redis): add default client name * feat(deps): bump
1 parent e6ee343 commit 0d6842b

File tree

17 files changed

+27
-27
lines changed

17 files changed

+27
-27
lines changed

badger/caddy/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ go 1.22.1
44

55
require (
66
github.com/caddyserver/caddy/v2 v2.8.4
7-
github.com/darkweak/storages/badger v0.0.9
8-
github.com/darkweak/storages/core v0.0.9
7+
github.com/darkweak/storages/badger v0.0.10
8+
github.com/darkweak/storages/core v0.0.10
99
)
1010

1111
require (

badger/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.22.1
44

55
require (
66
dario.cat/mergo v1.0.0
7-
github.com/darkweak/storages/core v0.0.9
7+
github.com/darkweak/storages/core v0.0.10
88
github.com/dgraph-io/badger/v3 v3.2103.5
99
github.com/pierrec/lz4/v4 v4.1.21
1010
go.uber.org/zap v1.27.0

etcd/caddy/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ go 1.22.1
44

55
require (
66
github.com/caddyserver/caddy/v2 v2.8.4
7-
github.com/darkweak/storages/core v0.0.9
8-
github.com/darkweak/storages/etcd v0.0.9
7+
github.com/darkweak/storages/core v0.0.10
8+
github.com/darkweak/storages/etcd v0.0.10
99
)
1010

1111
require (

etcd/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.22.1
55
replace github.com/darkweak/storages/core => ../core
66

77
require (
8-
github.com/darkweak/storages/core v0.0.9
8+
github.com/darkweak/storages/core v0.0.10
99
github.com/pierrec/lz4/v4 v4.1.21
1010
go.etcd.io/etcd/client/v3 v3.5.14
1111
go.uber.org/zap v1.27.0

go-redis/caddy/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ go 1.22.1
44

55
require (
66
github.com/caddyserver/caddy/v2 v2.8.4
7-
github.com/darkweak/storages/core v0.0.9
8-
github.com/darkweak/storages/go-redis v0.0.9
7+
github.com/darkweak/storages/core v0.0.10
8+
github.com/darkweak/storages/go-redis v0.0.10
99
)
1010

1111
require (

go-redis/go-redis.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type Redis struct {
3131
// Factory function create new Redis instance.
3232
func Factory(redisConfiguration core.CacheProvider, logger core.Logger, stale time.Duration) (core.Storer, error) {
3333
var options redis.UniversalOptions
34+
options.ClientName = "souin-redis"
3435

3536
var hashtags string
3637

@@ -53,9 +54,8 @@ func Factory(redisConfiguration core.CacheProvider, logger core.Logger, stale ti
5354
}
5455
} else {
5556
options = redis.UniversalOptions{
56-
Addrs: strings.Split(redisConfiguration.URL, ","),
57-
PoolSize: 1000,
58-
ClientName: "souin-redis",
57+
Addrs: strings.Split(redisConfiguration.URL, ","),
58+
PoolSize: 1000,
5959
}
6060
}
6161

go-redis/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.22.1
55
replace github.com/darkweak/storages/core => ../core
66

77
require (
8-
github.com/darkweak/storages/core v0.0.9
8+
github.com/darkweak/storages/core v0.0.10
99
github.com/pierrec/lz4/v4 v4.1.21
1010
github.com/redis/go-redis/v9 v9.5.4
1111
go.uber.org/zap v1.27.0

nats/caddy/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ go 1.22.1
44

55
require (
66
github.com/caddyserver/caddy/v2 v2.8.4
7-
github.com/darkweak/storages/core v0.0.9
8-
github.com/darkweak/storages/nats v0.0.9
7+
github.com/darkweak/storages/core v0.0.10
8+
github.com/darkweak/storages/nats v0.0.10
99
)
1010

1111
require (

nats/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ replace github.com/darkweak/storages/core => ../core
66

77
require (
88
dario.cat/mergo v1.0.0
9-
github.com/darkweak/storages/core v0.0.9
9+
github.com/darkweak/storages/core v0.0.10
1010
github.com/nats-io/nats.go v1.36.0
1111
github.com/pierrec/lz4/v4 v4.1.21
1212
go.uber.org/zap v1.27.0

nuts/caddy/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ go 1.22.1
44

55
require (
66
github.com/caddyserver/caddy/v2 v2.8.4
7-
github.com/darkweak/storages/core v0.0.9
8-
github.com/darkweak/storages/nuts v0.0.9
7+
github.com/darkweak/storages/core v0.0.10
8+
github.com/darkweak/storages/nuts v0.0.10
99
)
1010

1111
require (

0 commit comments

Comments
 (0)