Skip to content

Commit 934c6a3

Browse files
make public probabilistic and redis gears interfaces (#2695)
Co-authored-by: ofekshenawa <[email protected]>
1 parent 0637c53 commit 934c6a3

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

commands.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,8 @@ type Cmdable interface {
507507

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

510-
gearsCmdable
511-
probabilisticCmdable
510+
GearsCmdable
511+
ProbabilisticCmdable
512512
TimeseriesCmdable
513513
}
514514

probabilistic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/redis/go-redis/v9/internal/proto"
88
)
99

10-
type probabilisticCmdable interface {
10+
type ProbabilisticCmdable interface {
1111
BFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
1212
BFCard(ctx context.Context, key string) *IntCmd
1313
BFExists(ctx context.Context, key string, element interface{}) *BoolCmd

redis_gears.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strings"
77
)
88

9-
type gearsCmdable interface {
9+
type GearsCmdable interface {
1010
TFunctionLoad(ctx context.Context, lib string) *StatusCmd
1111
TFunctionLoadArgs(ctx context.Context, lib string, options *TFunctionLoadOptions) *StatusCmd
1212
TFunctionDelete(ctx context.Context, libName string) *StatusCmd
@@ -17,6 +17,7 @@ type gearsCmdable interface {
1717
TFCallASYNC(ctx context.Context, libName string, funcName string, numKeys int) *Cmd
1818
TFCallASYNCArgs(ctx context.Context, libName string, funcName string, numKeys int, options *TFCallOptions) *Cmd
1919
}
20+
2021
type TFunctionLoadOptions struct {
2122
Replace bool
2223
Config string

0 commit comments

Comments
 (0)