Skip to content

Commit d7c6c35

Browse files
Maintenance : Deprecate FCallRo & add FCallRO (redis#2550)
* Deprecated FCallRo * feat: FCallRo to FCallRO Signed-off-by: monkey92t <golang@88.com> * update doc Signed-off-by: monkey92t <golang@88.com> --------- Signed-off-by: monkey92t <golang@88.com> Co-authored-by: Anuragkillswitch <70265851+Anuragkillswitch@users.noreply.github.com> Co-authored-by: monkey92t <golang@88.com>
1 parent 0d860cb commit d7c6c35

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

commands.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ type Cmdable interface {
451451
FunctionStats(ctx context.Context) *FunctionStatsCmd
452452
FCall(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
453453
FCallRo(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
454+
FCallRO(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
454455

455456
Publish(ctx context.Context, channel string, message interface{}) *IntCmd
456457
SPublish(ctx context.Context, channel string, message interface{}) *IntCmd
@@ -3495,7 +3496,14 @@ func (c cmdable) FCall(ctx context.Context, function string, keys []string, args
34953496
_ = c(ctx, cmd)
34963497
return cmd
34973498
}
3499+
3500+
// FCallRo this function simply calls FCallRO,
3501+
// Deprecated: to maintain convention FCallRO.
34983502
func (c cmdable) FCallRo(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd {
3503+
return c.FCallRO(ctx, function, keys, args...)
3504+
}
3505+
3506+
func (c cmdable) FCallRO(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd {
34993507
cmdArgs := fcallArgs("fcall_ro", function, keys, args...)
35003508
cmd := NewCmd(ctx, cmdArgs...)
35013509
if len(keys) > 0 {

0 commit comments

Comments
 (0)