Skip to content

Commit

Permalink
make public probabilistic and redis gears interfaces (#2695)
Browse files Browse the repository at this point in the history
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
  • Loading branch information
peczenyj and ofekshenawa authored Sep 20, 2023
1 parent 0637c53 commit 934c6a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,8 @@ type Cmdable interface {

ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd

gearsCmdable
probabilisticCmdable
GearsCmdable
ProbabilisticCmdable
TimeseriesCmdable
}

Expand Down
2 changes: 1 addition & 1 deletion probabilistic.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/redis/go-redis/v9/internal/proto"
)

type probabilisticCmdable interface {
type ProbabilisticCmdable interface {
BFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
BFCard(ctx context.Context, key string) *IntCmd
BFExists(ctx context.Context, key string, element interface{}) *BoolCmd
Expand Down
3 changes: 2 additions & 1 deletion redis_gears.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
)

type gearsCmdable interface {
type GearsCmdable interface {
TFunctionLoad(ctx context.Context, lib string) *StatusCmd
TFunctionLoadArgs(ctx context.Context, lib string, options *TFunctionLoadOptions) *StatusCmd
TFunctionDelete(ctx context.Context, libName string) *StatusCmd
Expand All @@ -17,6 +17,7 @@ type gearsCmdable interface {
TFCallASYNC(ctx context.Context, libName string, funcName string, numKeys int) *Cmd
TFCallASYNCArgs(ctx context.Context, libName string, funcName string, numKeys int, options *TFCallOptions) *Cmd
}

type TFunctionLoadOptions struct {
Replace bool
Config string
Expand Down

0 comments on commit 934c6a3

Please sign in to comment.