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

Function stringRPopData

cmd/client/list.go:107–122  ·  view source on GitHub ↗

CLI for RPop command

(c *grumble.Context)

Source from the content-addressed store, hash-verified

105
106// CLI for RPop command
107func stringRPopData(c *grumble.Context) error {
108 key := c.Args.String("key")
109 if key == "" {
110 fmt.Println("key is empty")
111 return nil
112 }
113
114 value, err := newClient().RPop(key)
115 if err != nil {
116 fmt.Println("RPop data error:", err)
117 return err
118 }
119
120 fmt.Println("RPop data success:", value)
121 return nil
122}
123
124// CLI for LRange command
125func stringLRangeData(c *grumble.Context) error {

Callers

nothing calls this directly

Calls 3

newClientFunction · 0.85
RPopMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected