(key string, val []byte, ttl time.Duration)
| 74 | } |
| 75 | |
| 76 | func (s *SharedState) Set(key string, val []byte, ttl time.Duration) error { |
| 77 | return s.SetWithContext(context.Background(), key, val, ttl) |
| 78 | } |
| 79 | |
| 80 | func (s *SharedState) SetWithContext(ctx context.Context, key string, val []byte, ttl time.Duration) error { |
| 81 | if err := s.ensureStorage(); err != nil { |