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

Method IncrBy

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

Source from the content-addressed store, hash-verified

196}
197
198func (c *Client) IncrBy(key string, amount int64) error {
199 client, err := newGrpcClient(c.Addr)
200 if err != nil {
201 return err
202 }
203 _, err = client.IncrBy(context.Background(),
204 &gstring.IncrByRequest{Key: key, Amount: int32(amount)})
205 if err != nil {
206 return err
207 }
208
209 return nil
210}
211
212func (c *Client) IncrByFloat(key string, amount float64) error {
213 client, err := newGrpcClient(c.Addr)

Callers

nothing calls this directly

Calls 2

newGrpcClientFunction · 0.85
IncrByMethod · 0.65

Tested by

no test coverage detected