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

Method DecrBy

engine/grpc/client/string.go:242–255  ·  view source on GitHub ↗
(key string, amount int64)

Source from the content-addressed store, hash-verified

240}
241
242func (c *Client) DecrBy(key string, amount int64) error {
243 client, err := newGrpcClient(c.Addr)
244 if err != nil {
245 return err
246 }
247
248 _, err = client.DecrBy(context.Background(),
249 &gstring.DecrByRequest{Key: key, Amount: int32(amount)})
250 if err != nil {
251 return err
252 }
253
254 return nil
255}
256
257func (c *Client) Exists(key string) (bool, error) {
258 client, err := newGrpcClient(c.Addr)

Callers

nothing calls this directly

Calls 2

newGrpcClientFunction · 0.85
DecrByMethod · 0.65

Tested by

no test coverage detected