Set : set cache with default expiration
(key string, operations playerConfig)
| 27 | |
| 28 | // Set : set cache with default expiration |
| 29 | func (s *playerCache) Set(key string, operations playerConfig) { |
| 30 | s.setWithExpiredTime(key, operations, time.Now().Add(defaultCacheExpiration)) |
| 31 | } |
| 32 | |
| 33 | func (s *playerCache) setWithExpiredTime(key string, config playerConfig, time time.Time) { |
| 34 | s.key = key |
no test coverage detected