Skip to content

Commit

Permalink
Merge pull request #473 from unknowntpo/refactor-add-baseCmd
Browse files Browse the repository at this point in the history
Refactor: add baseCmd to go-redis adaptor commands
  • Loading branch information
rueian authored Mar 3, 2024
2 parents 7ef4762 + cbed500 commit bdddcdb
Show file tree
Hide file tree
Showing 2 changed files with 336 additions and 877 deletions.
3 changes: 2 additions & 1 deletion rueidiscompat/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -2560,7 +2560,8 @@ func (c *Compat) EvalShaRO(ctx context.Context, sha1 string, keys []string, args

func (c *Compat) ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd {
var mu sync.Mutex
ret := &BoolSliceCmd{val: make([]bool, len(hashes))}
ret := &BoolSliceCmd{}
ret.val = make([]bool, len(hashes))
for i := range hashes {
ret.val[i] = true
}
Expand Down
Loading

0 comments on commit bdddcdb

Please sign in to comment.