@@ -24,7 +24,7 @@ type probabilisticCmdable interface {
2424 BFReserve (ctx context.Context , key string , errorRate float64 , capacity int64 ) * StatusCmd
2525 BFReserveExpansion (ctx context.Context , key string , errorRate float64 , capacity , expansion int64 ) * StatusCmd
2626 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
2828 BFScanDump (ctx context.Context , key string , iterator int64 ) * ScanDumpCmd
2929 BFLoadChunk (ctx context.Context , key string , iterator int64 , data interface {}) * StatusCmd
3030
@@ -38,7 +38,7 @@ type probabilisticCmdable interface {
3838 CFInsertNX (ctx context.Context , key string , options * CFInsertOptions , elements ... interface {}) * IntSliceCmd
3939 CFMExists (ctx context.Context , key string , elements ... interface {}) * BoolSliceCmd
4040 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
4242 CFReserveExpansion (ctx context.Context , key string , capacity int64 , expansion int64 ) * StatusCmd
4343 CFReserveBucketSize (ctx context.Context , key string , capacity int64 , bucketsize int64 ) * StatusCmd
4444 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
143143 return cmd
144144}
145145
146- // BFReserveArgs creates an empty Bloom filter with a single sub-filter
146+ // BFReserveWithArgs creates an empty Bloom filter with a single sub-filter
147147// for the initial specified capacity and with an upper bound error_rate.
148148// This function also allows for specifying additional options such as expansion rate and non-scaling behavior.
149149// 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 {
151151 args := []interface {}{"BF.RESERVE" , key }
152152 if options != nil {
153153 if options .Error != 0 {
@@ -493,10 +493,10 @@ func (c cmdable) CFReserveMaxIterations(ctx context.Context, key string, capacit
493493 return cmd
494494}
495495
496- // CFReserveArgs creates an empty Cuckoo filter with the specified options.
496+ // CFReserveWithArgs creates an empty Cuckoo filter with the specified options.
497497// This function allows for specifying additional options such as bucket size and maximum number of iterations.
498498// 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 {
500500 args := []interface {}{"CF.RESERVE" , key , options .Capacity }
501501 if options .BucketSize != 0 {
502502 args = append (args , "BUCKETSIZE" , options .BucketSize )
@@ -679,7 +679,7 @@ func (c cmdable) CFInfo(ctx context.Context, key string) *CFInfoCmd {
679679// For more information - https://redis.io/commands/cf.insert/
680680func (c cmdable ) CFInsert (ctx context.Context , key string , options * CFInsertOptions , elements ... interface {}) * BoolSliceCmd {
681681 args := []interface {}{"CF.INSERT" , key }
682- args = c .getCfInsertArgs (args , options , elements ... )
682+ args = c .getCfInsertWithArgs (args , options , elements ... )
683683
684684 cmd := NewBoolSliceCmd (ctx , args ... )
685685 _ = c (ctx , cmd )
@@ -693,14 +693,14 @@ func (c cmdable) CFInsert(ctx context.Context, key string, options *CFInsertOpti
693693// For more information - https://redis.io/commands/cf.insertnx/
694694func (c cmdable ) CFInsertNX (ctx context.Context , key string , options * CFInsertOptions , elements ... interface {}) * IntSliceCmd {
695695 args := []interface {}{"CF.INSERTNX" , key }
696- args = c .getCfInsertArgs (args , options , elements ... )
696+ args = c .getCfInsertWithArgs (args , options , elements ... )
697697
698698 cmd := NewIntSliceCmd (ctx , args ... )
699699 _ = c (ctx , cmd )
700700 return cmd
701701}
702702
703- func (c cmdable ) getCfInsertArgs (args []interface {}, options * CFInsertOptions , elements ... interface {}) []interface {} {
703+ func (c cmdable ) getCfInsertWithArgs (args []interface {}, options * CFInsertOptions , elements ... interface {}) []interface {} {
704704 if options != nil {
705705 if options .Capacity != 0 {
706706 args = append (args , "CAPACITY" , options .Capacity )
0 commit comments