Skip to content

Commit

Permalink
Switch to RESP2
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaoz committed Jan 10, 2025
1 parent 1e3c07e commit 22bf919
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/cache/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ func Open(path, tablePrefix string, opts ...storage.Option) (Database, error) {
if err != nil {
return nil, err
}
opt.Protocol = 2
database := new(Redis)
database.client = redis.NewClusterClient(opt)
database.TablePrefix = storage.TablePrefix(tablePrefix)
Expand Down

0 comments on commit 22bf919

Please sign in to comment.