Get : get cache when it has same video id and not expired
(key string)
| 14 | |
| 15 | // Get : get cache when it has same video id and not expired |
| 16 | func (s playerCache) Get(key string) playerConfig { |
| 17 | return s.GetCacheBefore(key, time.Now()) |
| 18 | } |
| 19 | |
| 20 | // GetCacheBefore : can pass time for testing |
| 21 | func (s playerCache) GetCacheBefore(key string, time time.Time) playerConfig { |
no test coverage detected