(ctx context.Context, key string, out any)
| 158 | } |
| 159 | |
| 160 | func (s *SharedState) GetMsgPackWithContext(ctx context.Context, key string, out any) ([]byte, bool, error) { //nolint:gocritic // Keep unnamed returns for clarity. |
| 161 | if err := s.ensureStorage(); err != nil { |
| 162 | return nil, false, err |
| 163 | } |
| 164 | |
| 165 | return s.getEncodedWithContext(ctx, key, out, s.msgPackDecoder, "msgpack") |
| 166 | } |
| 167 | |
| 168 | func (s *SharedState) SetCBOR(key string, v any, ttl time.Duration) error { |
| 169 | return s.SetCBORWithContext(context.Background(), key, v, ttl) |
no test coverage detected