MCPcopy
hub / github.com/grafana/dskit / Increment

Method Increment

cache/memcached_client.go:495–499  ·  view source on GitHub ↗
(ctx context.Context, key string, delta uint64)

Source from the content-addressed store, hash-verified

493}
494
495func (c *MemcachedClient) Increment(ctx context.Context, key string, delta uint64) (uint64, error) {
496 return c.incrDecr(ctx, key, opIncrement, func() (uint64, error) {
497 return c.client.Increment(key, delta)
498 })
499}
500
501func (c *MemcachedClient) Decrement(ctx context.Context, key string, delta uint64) (uint64, error) {
502 return c.incrDecr(ctx, key, opDecrement, func() (uint64, error) {

Callers

nothing calls this directly

Calls 2

incrDecrMethod · 0.95
IncrementMethod · 0.65

Tested by

no test coverage detected