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

Function stringExists

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

Source from the content-addressed store, hash-verified

193}
194
195func stringExists(c *grumble.Context) error {
196 key := c.Args.String("key")
197 exists, err := newClient().Exists(key)
198 if err != nil {
199 return err
200 }
201 if exists {
202 fmt.Println("key is exist", key)
203 }
204 return nil
205}
206
207func stringExpire(c *grumble.Context) error {
208 key := c.Args.String("key")

Callers

nothing calls this directly

Calls 3

newClientFunction · 0.85
ExistsMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected