in edge-origin-request/app.js [26:42]
async function getApiVersionMappings(tableName) {
// Check if API verion mappings is populated
if(!hasValue(apiVersionMappings)) {
// Fetch API verion mappings from source and catche in memory
apiVersionMappings = await fetchApiVersionMappings(tableName);
// Set a timer to clear in memory catche
if(hasValue(apiVersionMappings)) {
setTimeout(() => {
apiVersionMappings = undefined;
}, TTL);
}
}
return apiVersionMappings;
}