From 5665b0f7ea26298a8c7ff45323348e7b04b8d491 Mon Sep 17 00:00:00 2001 From: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com> Date: Sun, 17 Dec 2023 17:45:00 +0200 Subject: [PATCH] Clarify TSMadd ktvSlices usage in docstring (#2827) * Clarify TSMadd ktvSlices usage in docstring * change syntax --- timeseries_commands.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/timeseries_commands.go b/timeseries_commands.go index 61cc3a5b..6f1b2fa4 100644 --- a/timeseries_commands.go +++ b/timeseries_commands.go @@ -531,6 +531,8 @@ func (c cmdable) TSInfoWithArgs(ctx context.Context, key string, options *TSInfo } // TSMAdd - Adds multiple samples to multiple time-series keys. +// It accepts a slice of 'ktv' slices, each containing exactly three elements: key, timestamp, and value. +// This struct must be provided for this command to work. // For more information - https://redis.io/commands/ts.madd/ func (c cmdable) TSMAdd(ctx context.Context, ktvSlices [][]interface{}) *IntSliceCmd { args := []interface{}{"TS.MADD"}