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

Struct CacheData

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

Struct for storing cache data with expiry timestamp [time.Now() + CACHE_EXTENSION_TTL]

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected