Skip to content

Commit

Permalink
Get update from main, fix conflict
Browse files Browse the repository at this point in the history
Signed-off-by: EdricCua <[email protected]>
  • Loading branch information
EdricCua committed Jan 3, 2025
1 parent 4e4ea2f commit 43abd86
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions go/api/string_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,4 +455,24 @@ type StringCommands interface {
//
//[valkey.io]: https://valkey.io/commands/getdel/
GetDel(key string) (Result[string], error)

// Echo the provided message back.
// The command will be routed a random node.
//
// Parameters:
// message - The provided message.
//
// Return value:
// The provided message
//
//
// For example:
// result, err := client.Echo("Hello World")
// if err != nil {
// // handle error
// }
// fmt.Println(result.Value()) // Output: Hello World
//
// [valkey.io]: https://valkey.io/commands/echo/
Echo(message string) (Result[string], error)
}

0 comments on commit 43abd86

Please sign in to comment.