Inline prompt
class UserService { /* @implement Add a caching layer for user data: - Cache user objects by ID in a Map - Expire entries after 5 minutes - Fetch from API if cache miss or stale */ async getUser(id: string): Promise { // Current implementation... } }

Seonglae Cho