(ctx context.Context, key string, delta uint64)
| 493 | } |
| 494 | |
| 495 | func (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 | |
| 501 | func (c *MemcachedClient) Decrement(ctx context.Context, key string, delta uint64) (uint64, error) { |
| 502 | return c.incrDecr(ctx, key, opDecrement, func() (uint64, error) { |