1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-17 16:12:42 +08:00
This commit is contained in:
2023-10-12 15:00:23 +08:00
parent bcfb177fd9
commit 42b5cef555

View File

@ -8,8 +8,8 @@ import (
"github.com/charlienet/go-mixed/bloom"
"github.com/charlienet/go-mixed/rand"
"github.com/charlienet/go-mixed/redis"
"github.com/charlienet/go-mixed/sys"
"github.com/redis/go-redis/v9"
"github.com/stretchr/testify/assert"
)
@ -49,8 +49,9 @@ func TestOptimize(t *testing.T) {
}
func TestRedis(t *testing.T) {
client := redis.NewClient(&redis.Options{
Addr: "192.168.2.222:6379",
client := redis.New(&redis.ReidsOption{
Addrs: []string{"192.168.2.222:6379"},
Password: "123456",
})