Check whether cache has expired
(cacheExpiry time.Time)
| 26 | |
| 27 | // Check whether cache has expired |
| 28 | func IsExpired(cacheExpiry time.Time) bool { |
| 29 | return cacheExpiry.Before(time.Now()) |
| 30 | } |
| 31 | |
| 32 | // Return cache expiry timestamp based on "time.Now() + CACHE_EXTENSION_TTL" |
| 33 | func GetCacheExpiry() time.Time { |
no outgoing calls
no test coverage detected