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

Function SetRems

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

Source from the content-addressed store, hash-verified

57}
58
59func SetRems(c *grumble.Context) error {
60 key := c.Args.String("key")
61 members := c.Args.StringList("members")
62 if key == "" || len(members) == 0 {
63 fmt.Println("key or members are empty")
64 return nil
65 }
66
67 err := newClient().SRems(key, members)
68 if err != nil {
69 fmt.Println("SRems data error: ", err)
70 return err
71 }
72 fmt.Println("SRems data success")
73 return nil
74}
75
76func SetCard(c *grumble.Context) error {
77 key := c.Args.String("key")

Callers

nothing calls this directly

Calls 3

newClientFunction · 0.85
SRemsMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected