Struct for storing cache data with expiry timestamp [time.Now() + CACHE_EXTENSION_TTL]
| 20 | |
| 21 | // Struct for storing cache data with expiry timestamp [time.Now() + CACHE_EXTENSION_TTL] |
| 22 | type CacheData struct { |
| 23 | Data string |
| 24 | CacheExpiry time.Time |
| 25 | } |
| 26 | |
| 27 | // Check whether cache has expired |
| 28 | func IsExpired(cacheExpiry time.Time) bool { |
nothing calls this directly
no outgoing calls
no test coverage detected