(key string, v any, ttl time.Duration)
| 166 | } |
| 167 | |
| 168 | func (s *SharedState) SetCBOR(key string, v any, ttl time.Duration) error { |
| 169 | return s.SetCBORWithContext(context.Background(), key, v, ttl) |
| 170 | } |
| 171 | |
| 172 | func (s *SharedState) SetCBORWithContext(ctx context.Context, key string, v any, ttl time.Duration) error { |
| 173 | if err := s.ensureStorage(); err != nil { |