(key string, value T, ttl time.Duration)
| 25 | } |
| 26 | |
| 27 | func (c *KeyedCache[T]) SetWithTTL(key string, value T, ttl time.Duration) { |
| 28 | c.SetWithExpirable(key, value, ExpirationTime(time.Now().Add(ttl))) |
| 29 | } |
| 30 | |
| 31 | func (c *KeyedCache[T]) SetWithExpirable(key string, value T, exp Expirable) { |
| 32 | c.mu.Lock() |
no test coverage detected