Skip to content

Commit 5665b0f

Browse files
authored
Clarify TSMadd ktvSlices usage in docstring (#2827)
* Clarify TSMadd ktvSlices usage in docstring * change syntax
1 parent 9073e40 commit 5665b0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

timeseries_commands.go

+2
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,8 @@ func (c cmdable) TSInfoWithArgs(ctx context.Context, key string, options *TSInfo
531531
}
532532

533533
// TSMAdd - Adds multiple samples to multiple time-series keys.
534+
// It accepts a slice of 'ktv' slices, each containing exactly three elements: key, timestamp, and value.
535+
// This struct must be provided for this command to work.
534536
// For more information - https://redis.io/commands/ts.madd/
535537
func (c cmdable) TSMAdd(ctx context.Context, ktvSlices [][]interface{}) *IntSliceCmd {
536538
args := []interface{}{"TS.MADD"}

0 commit comments

Comments
 (0)