(c *grumble.Context)
| 47 | } |
| 48 | |
| 49 | func stringDeleteKey(c *grumble.Context) error { |
| 50 | key := c.Args.String("key") |
| 51 | if key == "" { |
| 52 | fmt.Println("key is empty") |
| 53 | return nil |
| 54 | } |
| 55 | err := newClient().Del(key) |
| 56 | if err != nil { |
| 57 | fmt.Println("delete key error: ", err) |
| 58 | return err |
| 59 | } |
| 60 | fmt.Println("delete key success") |
| 61 | return nil |
| 62 | } |
| 63 | |
| 64 | func stringGetType(c *grumble.Context) error { |
| 65 | key := c.Args.String("key") |