Exemplo n.º 1
0
func Iterate() string {
	cmd := command.Command{}
	cmd.Argc = 1
	cmd.Args = []string{"iterate"}
	value := SendCommand(conn, cmd)
	return value
}
Exemplo n.º 2
0
func Incr(key string) string {
	cmd := command.Command{}
	cmd.Argc = 2
	cmd.Args = []string{"incr", key}
	value := SendCommand(conn, cmd)
	return value
}
Exemplo n.º 3
0
func Set(key string, value string) string {
	cmd := command.Command{}
	cmd.Argc = 3
	cmd.Args = []string{"set", key, value}
	response := SendCommand(conn, cmd)
	return response
}