(ctx context.Context, keys []string, opts ...Option)
| 437 | } |
| 438 | |
| 439 | func (c *MemcachedClient) GetMulti(ctx context.Context, keys []string, opts ...Option) map[string][]byte { |
| 440 | hits, err := c.GetMultiWithError(ctx, keys, opts...) |
| 441 | if err != nil { |
| 442 | if errors.Is(err, context.Canceled) { |
| 443 | return nil |
| 444 | } |
| 445 | level.Warn(c.logger).Log("msg", "failed to fetch items from memcached", "numKeys", len(keys), "firstKey", keys[0], "err", err) |
| 446 | } |
| 447 | return hits |
| 448 | } |
| 449 | |
| 450 | func (c *MemcachedClient) GetMultiWithError(ctx context.Context, keys []string, opts ...Option) (map[string][]byte, error) { |
| 451 | if len(keys) == 0 { |
nothing calls this directly
no test coverage detected