(c *grumble.Context)
| 74 | } |
| 75 | |
| 76 | func SetCard(c *grumble.Context) error { |
| 77 | key := c.Args.String("key") |
| 78 | if key == "" { |
| 79 | fmt.Println("key is empty") |
| 80 | return nil |
| 81 | } |
| 82 | |
| 83 | count, err := newClient().SCard(key) |
| 84 | if err != nil { |
| 85 | fmt.Println("SCard data error: ", err) |
| 86 | return err |
| 87 | } |
| 88 | fmt.Println("SCard count:", count) |
| 89 | return nil |
| 90 | } |
| 91 | |
| 92 | func SetMembers(c *grumble.Context) error { |
| 93 | key := c.Args.String("key") |