Skip to content

Commit ccdd6ea

Browse files
committed
make public probabilistic and redis gears interfaces
1 parent c3098d5 commit ccdd6ea

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
@@ -505,8 +505,8 @@ type Cmdable interface {
505505

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

508-
gearsCmdable
509-
probabilisticCmdable
508+
GearsCmdable
509+
ProbabilisticCmdable
510510
}
511511

512512
type StatefulCmdable interface {

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)