@@ -24,7 +24,7 @@ type probabilisticCmdable interface {
24
24
BFReserve (ctx context.Context , key string , errorRate float64 , capacity int64 ) * StatusCmd
25
25
BFReserveExpansion (ctx context.Context , key string , errorRate float64 , capacity , expansion int64 ) * StatusCmd
26
26
BFReserveNonScaling (ctx context.Context , key string , errorRate float64 , capacity int64 ) * StatusCmd
27
- BFReserveArgs (ctx context.Context , key string , options * BFReserveOptions ) * StatusCmd
27
+ BFReserveWithArgs (ctx context.Context , key string , options * BFReserveOptions ) * StatusCmd
28
28
BFScanDump (ctx context.Context , key string , iterator int64 ) * ScanDumpCmd
29
29
BFLoadChunk (ctx context.Context , key string , iterator int64 , data interface {}) * StatusCmd
30
30
@@ -38,7 +38,7 @@ type probabilisticCmdable interface {
38
38
CFInsertNX (ctx context.Context , key string , options * CFInsertOptions , elements ... interface {}) * IntSliceCmd
39
39
CFMExists (ctx context.Context , key string , elements ... interface {}) * BoolSliceCmd
40
40
CFReserve (ctx context.Context , key string , capacity int64 ) * StatusCmd
41
- CFReserveArgs (ctx context.Context , key string , options * CFReserveOptions ) * StatusCmd
41
+ CFReserveWithArgs (ctx context.Context , key string , options * CFReserveOptions ) * StatusCmd
42
42
CFReserveExpansion (ctx context.Context , key string , capacity int64 , expansion int64 ) * StatusCmd
43
43
CFReserveBucketSize (ctx context.Context , key string , capacity int64 , bucketsize int64 ) * StatusCmd
44
44
CFReserveMaxIterations (ctx context.Context , key string , capacity int64 , maxiterations int64 ) * StatusCmd
@@ -143,11 +143,11 @@ func (c cmdable) BFReserveNonScaling(ctx context.Context, key string, errorRate
143
143
return cmd
144
144
}
145
145
146
- // BFReserveArgs creates an empty Bloom filter with a single sub-filter
146
+ // BFReserveWithArgs creates an empty Bloom filter with a single sub-filter
147
147
// for the initial specified capacity and with an upper bound error_rate.
148
148
// This function also allows for specifying additional options such as expansion rate and non-scaling behavior.
149
149
// For more information - https://redis.io/commands/bf.reserve/
150
- func (c cmdable ) BFReserveArgs (ctx context.Context , key string , options * BFReserveOptions ) * StatusCmd {
150
+ func (c cmdable ) BFReserveWithArgs (ctx context.Context , key string , options * BFReserveOptions ) * StatusCmd {
151
151
args := []interface {}{"BF.RESERVE" , key }
152
152
if options != nil {
153
153
if options .Error != 0 {
@@ -493,10 +493,10 @@ func (c cmdable) CFReserveMaxIterations(ctx context.Context, key string, capacit
493
493
return cmd
494
494
}
495
495
496
- // CFReserveArgs creates an empty Cuckoo filter with the specified options.
496
+ // CFReserveWithArgs creates an empty Cuckoo filter with the specified options.
497
497
// This function allows for specifying additional options such as bucket size and maximum number of iterations.
498
498
// For more information - https://redis.io/commands/cf.reserve/
499
- func (c cmdable ) CFReserveArgs (ctx context.Context , key string , options * CFReserveOptions ) * StatusCmd {
499
+ func (c cmdable ) CFReserveWithArgs (ctx context.Context , key string , options * CFReserveOptions ) * StatusCmd {
500
500
args := []interface {}{"CF.RESERVE" , key , options .Capacity }
501
501
if options .BucketSize != 0 {
502
502
args = append (args , "BUCKETSIZE" , options .BucketSize )
@@ -679,7 +679,7 @@ func (c cmdable) CFInfo(ctx context.Context, key string) *CFInfoCmd {
679
679
// For more information - https://redis.io/commands/cf.insert/
680
680
func (c cmdable ) CFInsert (ctx context.Context , key string , options * CFInsertOptions , elements ... interface {}) * BoolSliceCmd {
681
681
args := []interface {}{"CF.INSERT" , key }
682
- args = c .getCfInsertArgs (args , options , elements ... )
682
+ args = c .getCfInsertWithArgs (args , options , elements ... )
683
683
684
684
cmd := NewBoolSliceCmd (ctx , args ... )
685
685
_ = c (ctx , cmd )
@@ -693,14 +693,14 @@ func (c cmdable) CFInsert(ctx context.Context, key string, options *CFInsertOpti
693
693
// For more information - https://redis.io/commands/cf.insertnx/
694
694
func (c cmdable ) CFInsertNX (ctx context.Context , key string , options * CFInsertOptions , elements ... interface {}) * IntSliceCmd {
695
695
args := []interface {}{"CF.INSERTNX" , key }
696
- args = c .getCfInsertArgs (args , options , elements ... )
696
+ args = c .getCfInsertWithArgs (args , options , elements ... )
697
697
698
698
cmd := NewIntSliceCmd (ctx , args ... )
699
699
_ = c (ctx , cmd )
700
700
return cmd
701
701
}
702
702
703
- func (c cmdable ) getCfInsertArgs (args []interface {}, options * CFInsertOptions , elements ... interface {}) []interface {} {
703
+ func (c cmdable ) getCfInsertWithArgs (args []interface {}, options * CFInsertOptions , elements ... interface {}) []interface {} {
704
704
if options != nil {
705
705
if options .Capacity != 0 {
706
706
args = append (args , "CAPACITY" , options .Capacity )
0 commit comments