mirror of https://github.com/go-redis/redis.git
make public probabilistic and redis gears interfaces (#2695)
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
This commit is contained in:
parent
0637c53f10
commit
934c6a3fe0
|
@ -507,8 +507,8 @@ type Cmdable interface {
|
|||
|
||||
ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd
|
||||
|
||||
gearsCmdable
|
||||
probabilisticCmdable
|
||||
GearsCmdable
|
||||
ProbabilisticCmdable
|
||||
TimeseriesCmdable
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue