Skip to content

Commit ac5c85b

Browse files
authored
update go-redis and golang version (#292)
* update go-redis version * increase go version
1 parent 8a2dd81 commit ac5c85b

File tree

10 files changed

+31
-80
lines changed

10 files changed

+31
-80
lines changed

.github/workflows/go-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Go
1717
uses: actions/setup-go@v2
1818
with:
19-
go-version: 1.17
19+
go-version: 1.19
2020

2121
- name: Build
2222
run: go build -v ./...

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
name: Set up Go
2525
uses: actions/setup-go@v2
2626
with:
27-
go-version: 1.17
27+
go-version: 1.19
2828

2929
- name: Install cross-compile package
3030
run: |

cache/async_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/contentsquare/chproxy/clients"
88
"github.com/contentsquare/chproxy/config"
99
"github.com/contentsquare/chproxy/log"
10-
"github.com/go-redis/redis/v8"
10+
"github.com/redis/go-redis/v9"
1111
)
1212

1313
// AsyncCache is a transactional cache enabled to serve the results from concurrent queries.

cache/redis_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
"github.com/contentsquare/chproxy/config"
1616
"github.com/contentsquare/chproxy/log"
17-
"github.com/go-redis/redis/v8"
17+
"github.com/redis/go-redis/v9"
1818
)
1919

2020
type redisCache struct {

cache/redis_cache_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"time"
1111

1212
"github.com/alicebob/miniredis/v2"
13-
"github.com/go-redis/redis/v8"
13+
"github.com/redis/go-redis/v9"
1414

1515
"github.com/contentsquare/chproxy/config"
1616
)

cache/transaction_registry_redis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"fmt"
99

1010
"github.com/contentsquare/chproxy/log"
11-
"github.com/go-redis/redis/v8"
11+
"github.com/redis/go-redis/v9"
1212
)
1313

1414
type redisTransactionRegistry struct {

cache/transaction_registry_redis_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"time"
66

77
"github.com/alicebob/miniredis/v2"
8-
"github.com/go-redis/redis/v8"
8+
"github.com/redis/go-redis/v9"
99
)
1010

1111
func TestRedisTransaction(t *testing.T) {

clients/redis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66

77
"github.com/contentsquare/chproxy/config"
8-
"github.com/go-redis/redis/v8"
8+
"github.com/redis/go-redis/v9"
99
)
1010

1111
// TODO Implement TLS Client

go.mod

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
module github.com/contentsquare/chproxy
22

3-
go 1.17
3+
go 1.19
44

55
require (
66
github.com/alicebob/miniredis/v2 v2.21.0
7-
github.com/go-redis/redis/v8 v8.11.4
87
github.com/google/go-cmp v0.5.7
98
github.com/klauspost/compress v1.15.11
109
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
1110
github.com/pierrec/lz4 v2.4.0+incompatible
1211
github.com/prometheus/client_golang v1.3.0
13-
github.com/stretchr/testify v1.7.1
12+
github.com/redis/go-redis/v9 v9.0.2
13+
github.com/stretchr/testify v1.8.1
1414
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
1515
gopkg.in/yaml.v2 v2.4.0
1616
)
1717

1818
require (
1919
github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a // indirect
2020
github.com/beorn7/perks v1.0.1 // indirect
21-
github.com/cespare/xxhash/v2 v2.1.2 // indirect
21+
github.com/cespare/xxhash/v2 v2.2.0 // indirect
2222
github.com/davecgh/go-spew v1.1.1 // indirect
2323
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
2424
github.com/frankban/quicktest v1.7.2 // indirect
@@ -30,9 +30,9 @@ require (
3030
github.com/prometheus/procfs v0.0.8 // indirect
3131
github.com/yuin/gopher-lua v0.0.0-20210529063254-f4c35e4016d9 // indirect
3232
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781 // indirect
33-
golang.org/x/sys v0.0.0-20210423082822-04245dca01da // indirect
33+
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
3434
golang.org/x/text v0.3.6 // indirect
3535
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
3636
google.golang.org/protobuf v1.26.0 // indirect
37-
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
37+
gopkg.in/yaml.v3 v3.0.1 // indirect
3838
)

go.sum

Lines changed: 17 additions & 66 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)