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
|
ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd
|
||||||
|
|
||||||
gearsCmdable
|
GearsCmdable
|
||||||
probabilisticCmdable
|
ProbabilisticCmdable
|
||||||
TimeseriesCmdable
|
TimeseriesCmdable
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue