(ctx context.Context, key string, out any)
| 182 | } |
| 183 | |
| 184 | func (s *SharedState) GetCBORWithContext(ctx context.Context, key string, out any) ([]byte, bool, error) { //nolint:gocritic // Keep unnamed returns for clarity. |
| 185 | if err := s.ensureStorage(); err != nil { |
| 186 | return nil, false, err |
| 187 | } |
| 188 | |
| 189 | return s.getEncodedWithContext(ctx, key, out, s.cborDecoder, "cbor") |
| 190 | } |
| 191 | |
| 192 | func (s *SharedState) SetXML(key string, v any, ttl time.Duration) error { |
| 193 | return s.SetXMLWithContext(context.Background(), key, v, ttl) |
no test coverage detected