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

Method IncrByFloat

engine/grpc/client/string.go:212–225  ·  view source on GitHub ↗
(key string, amount float64)

Source from the content-addressed store, hash-verified

210}
211
212func (c *Client) IncrByFloat(key string, amount float64) error {
213 client, err := newGrpcClient(c.Addr)
214 if err != nil {
215 return err
216 }
217
218 _, err = client.IncrByFloat(context.Background(),
219 &gstring.IncrByFloatRequest{Key: key, Amount: amount})
220 if err != nil {
221 return err
222 }
223
224 return nil
225}
226
227func (c *Client) Decr(key string) error {
228 client, err := newGrpcClient(c.Addr)

Callers

nothing calls this directly

Calls 2

newGrpcClientFunction · 0.85
IncrByFloatMethod · 0.65

Tested by

no test coverage detected