(ctx context.Context, key string, val []byte, exp time.Duration)
| 69 | } |
| 70 | |
| 71 | func (s *contextCheckingStorage) SetWithContext(ctx context.Context, key string, val []byte, exp time.Duration) error { |
| 72 | if ctx.Value(s.ctxKey) == nil { |
| 73 | return errors.New("context value not found") |
| 74 | } |
| 75 | return s.base.SetWithContext(ctx, key, val, exp) |
| 76 | } |
| 77 | |
| 78 | func (s *contextCheckingStorage) GetWithContext(ctx context.Context, key string) ([]byte, error) { |
| 79 | if ctx.Value(s.ctxKey) == nil { |
no test coverage detected