Set stores the episode count with a TTL expiry.
(title string, season int, count int)
| 49 | |
| 50 | // Set stores the episode count with a TTL expiry. |
| 51 | func (c *resultCache) Set(title string, season int, count int) { |
| 52 | key := cacheKey(title, season) |
| 53 | c.entries.Store(key, cacheEntry{ |
| 54 | count: count, |
| 55 | expires: time.Now().Add(cacheTTL), |
| 56 | }) |
| 57 | } |