(c *grumble.Context)
| 146 | } |
| 147 | |
| 148 | func stringIncrByFloat(c *grumble.Context) error { |
| 149 | key := c.Args.String("key") |
| 150 | amount := c.Args.Float64("amount") |
| 151 | if key == "" { |
| 152 | fmt.Println("key is empty") |
| 153 | return nil |
| 154 | } |
| 155 | err := newClient().IncrByFloat(key, amount) |
| 156 | if err != nil { |
| 157 | fmt.Println("incrbyfloat operation error: ", err) |
| 158 | return err |
| 159 | } |
| 160 | fmt.Println("IncrByFloat operation success") |
| 161 | return nil |
| 162 | } |
| 163 | |
| 164 | func stringDecr(c *grumble.Context) error { |
| 165 | key := c.Args.String("key") |
nothing calls this directly
no test coverage detected