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

Function stringDecr

cmd/client/string.go:164–177  ·  view source on GitHub ↗
(c *grumble.Context)

Source from the content-addressed store, hash-verified

162}
163
164func stringDecr(c *grumble.Context) error {
165 key := c.Args.String("key")
166 if key == "" {
167 fmt.Println("key is empty")
168 return nil
169 }
170 err := newClient().Decr(key)
171 if err != nil {
172 fmt.Println("decr operation error: ", err)
173 return err
174 }
175 fmt.Println("Decr operation success")
176 return nil
177}
178
179func stringDecrBy(c *grumble.Context) error {
180 key := c.Args.String("key")

Callers

nothing calls this directly

Calls 3

newClientFunction · 0.85
DecrMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected