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

Function stringDeleteKey

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

Source from the content-addressed store, hash-verified

47}
48
49func stringDeleteKey(c *grumble.Context) error {
50 key := c.Args.String("key")
51 if key == "" {
52 fmt.Println("key is empty")
53 return nil
54 }
55 err := newClient().Del(key)
56 if err != nil {
57 fmt.Println("delete key error: ", err)
58 return err
59 }
60 fmt.Println("delete key success")
61 return nil
62}
63
64func stringGetType(c *grumble.Context) error {
65 key := c.Args.String("key")

Callers

nothing calls this directly

Calls 3

newClientFunction · 0.85
DelMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected