Concept Flow - Cache middleware pattern
Incoming Request
Check Cache for Data
Return Cached Data
Send Response
Store Data in Cache
Send Response
The middleware checks if data is in cache. If yes, it returns cached data. If no, it fetches fresh data, stores it in cache, then sends response.
