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

Function stringIncr

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

Source from the content-addressed store, hash-verified

115}
116
117func stringIncr(c *grumble.Context) error {
118 key := c.Args.String("key")
119 if key == "" {
120 fmt.Println("key is empty")
121 return nil
122 }
123 err := newClient().Incr(key)
124 if err != nil {
125 fmt.Println("incr operation error: ", err)
126 return err
127 }
128 fmt.Println("Incr operation success")
129 return nil
130}
131
132func stringIncrBy(c *grumble.Context) error {
133 key := c.Args.String("key")

Callers

nothing calls this directly

Calls 3

newClientFunction · 0.85
IncrMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected