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
gearsCmdable
probabilisticCmdable
GearsCmdable
ProbabilisticCmdable
TimeseriesCmdable
}

View File

@ -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

View File

@ -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