MCPcopy Create free account
hub / github.com/aws-samples/aws-lambda-extensions / IsExpired

Function IsExpired

cache-extension-demo/plugins/utils.go:28–30  ·  view source on GitHub ↗

Check whether cache has expired

(cacheExpiry time.Time)

Source from the content-addressed store, hash-verified

26
27// Check whether cache has expired
28func 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"
33func GetCacheExpiry() time.Time {

Callers 2

GetDynamodbCacheFunction · 0.85
GetParameterCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected