make public probabilistic and redis gears interfaces (#2695)

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
This commit is contained in:
Tiago Peczenyj 2023-09-20 13:54:50 +02:00 committed by GitHub
parent 0637c53f10
commit 934c6a3fe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -507,8 +507,8 @@ type Cmdable interface {
ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd
gearsCmdable GearsCmdable
probabilisticCmdable ProbabilisticCmdable
TimeseriesCmdable TimeseriesCmdable
} }

View File

@ -7,7 +7,7 @@ import (
"github.com/redis/go-redis/v9/internal/proto" "github.com/redis/go-redis/v9/internal/proto"
) )
type probabilisticCmdable interface { type ProbabilisticCmdable interface {
BFAdd(ctx context.Context, key string, element interface{}) *BoolCmd BFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
BFCard(ctx context.Context, key string) *IntCmd BFCard(ctx context.Context, key string) *IntCmd
BFExists(ctx context.Context, key string, element interface{}) *BoolCmd BFExists(ctx context.Context, key string, element interface{}) *BoolCmd

View File

@ -6,7 +6,7 @@ import (
"strings" "strings"
) )
type gearsCmdable interface { type GearsCmdable interface {
TFunctionLoad(ctx context.Context, lib string) *StatusCmd TFunctionLoad(ctx context.Context, lib string) *StatusCmd
TFunctionLoadArgs(ctx context.Context, lib string, options *TFunctionLoadOptions) *StatusCmd TFunctionLoadArgs(ctx context.Context, lib string, options *TFunctionLoadOptions) *StatusCmd
TFunctionDelete(ctx context.Context, libName string) *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 TFCallASYNC(ctx context.Context, libName string, funcName string, numKeys int) *Cmd
TFCallASYNCArgs(ctx context.Context, libName string, funcName string, numKeys int, options *TFCallOptions) *Cmd TFCallASYNCArgs(ctx context.Context, libName string, funcName string, numKeys int, options *TFCallOptions) *Cmd
} }
type TFunctionLoadOptions struct { type TFunctionLoadOptions struct {
Replace bool Replace bool
Config string Config string