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

Method Decr

engine/grpc/client/string.go:227–240  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

225}
226
227func (c *Client) Decr(key string) error {
228 client, err := newGrpcClient(c.Addr)
229 if err != nil {
230 return err
231 }
232
233 _, err = client.Decr(context.Background(),
234 &gstring.DecrRequest{Key: key})
235 if err != nil {
236 return err
237 }
238
239 return nil
240}
241
242func (c *Client) DecrBy(key string, amount int64) error {
243 client, err := newGrpcClient(c.Addr)

Callers

nothing calls this directly

Calls 2

newGrpcClientFunction · 0.85
DecrMethod · 0.65

Tested by

no test coverage detected