(ctx context.Context, key string)
| 218 | } |
| 219 | |
| 220 | func (s *SharedState) DeleteWithContext(ctx context.Context, key string) error { |
| 221 | if err := s.ensureStorage(); err != nil { |
| 222 | return err |
| 223 | } |
| 224 | |
| 225 | storageKey, ok := s.storageKey(key) |
| 226 | if !ok { |
| 227 | return nil |
| 228 | } |
| 229 | |
| 230 | return s.storage.DeleteWithContext(ctx, storageKey) |
| 231 | } |
| 232 | |
| 233 | func (s *SharedState) Has(key string) (bool, error) { |
| 234 | return s.HasWithContext(context.Background(), key) |
no test coverage detected