MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / SetRem

Function SetRem

cmd/client/set.go:42–57  ·  view source on GitHub ↗
(c *grumble.Context)

Source from the content-addressed store, hash-verified

40}
41
42func SetRem(c *grumble.Context) error {
43 key := c.Args.String("key")
44 member := c.Args.String("member")
45 if key == "" || member == "" {
46 fmt.Println("key or value is empty")
47 return nil
48 }
49
50 err := newClient().SRem(key, member)
51 if err != nil {
52 fmt.Println("SRem data error: ", err)
53 return err
54 }
55 fmt.Println("SRem data success")
56 return nil
57}
58
59func SetRems(c *grumble.Context) error {
60 key := c.Args.String("key")

Callers

nothing calls this directly

Calls 3

newClientFunction · 0.85
SRemMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected