Coding task · JavaScript and React course · Module 11: Data Fetching and APIs

Practice: Cache with Map and TTL

Implement a simple cache using Map and TTL (Time To Live). The hook should return cached data immediately and refresh it in the background.

Task

Cache implementation with TTL