diff --git a/commands.go b/commands.go index 2537c0ac..8cff2cb4 100644 --- a/commands.go +++ b/commands.go @@ -507,8 +507,8 @@ type Cmdable interface { ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd - gearsCmdable - probabilisticCmdable + GearsCmdable + ProbabilisticCmdable TimeseriesCmdable } diff --git a/probabilistic.go b/probabilistic.go index 61a3460a..d397b490 100644 --- a/probabilistic.go +++ b/probabilistic.go @@ -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 diff --git a/redis_gears.go b/redis_gears.go index 8e6ad874..0c67cdf2 100644 --- a/redis_gears.go +++ b/redis_gears.go @@ -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 @@ -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