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

Method Incr

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

Source from the content-addressed store, hash-verified

183}
184
185func (c *Client) Incr(key string) error {
186 client, err := newGrpcClient(c.Addr)
187 if err != nil {
188 return err
189 }
190 _, err = client.Incr(context.Background(), &gstring.IncrRequest{Key: key})
191 if err != nil {
192 return err
193 }
194
195 return nil
196}
197
198func (c *Client) IncrBy(key string, amount int64) error {
199 client, err := newGrpcClient(c.Addr)

Callers

nothing calls this directly

Calls 2

newGrpcClientFunction · 0.85
IncrMethod · 0.65

Tested by

no test coverage detected