(ctx context.Context, key string, v any, ttl time.Duration)
| 194 | } |
| 195 | |
| 196 | func (s *SharedState) SetXMLWithContext(ctx context.Context, key string, v any, ttl time.Duration) error { |
| 197 | if err := s.ensureStorage(); err != nil { |
| 198 | return err |
| 199 | } |
| 200 | |
| 201 | return s.setEncodedWithContext(ctx, key, v, ttl, s.xmlEncoder, "xml") |
| 202 | } |
| 203 | |
| 204 | func (s *SharedState) GetXML(key string, out any) ([]byte, bool, error) { //nolint:gocritic // Keep unnamed returns for clarity. |
| 205 | return s.GetXMLWithContext(context.Background(), key, out) |
no test coverage detected