(key string, v any, ttl time.Duration)
| 118 | } |
| 119 | |
| 120 | func (s *SharedState) SetJSON(key string, v any, ttl time.Duration) error { |
| 121 | return s.SetJSONWithContext(context.Background(), key, v, ttl) |
| 122 | } |
| 123 | |
| 124 | func (s *SharedState) SetJSONWithContext(ctx context.Context, key string, v any, ttl time.Duration) error { |
| 125 | if err := s.ensureStorage(); err != nil { |