Question · NestJS course · Module 8: Caching and Performance
@CacheTTL Decorator
@CacheTTL(600000) on a controller method means:
Answer options
- Cache has 600,000 memory slots
- Endpoint will handle a maximum of 600,000 req/s
- Response will be cached for 600,000 milliseconds (10 minutes)
- A maximum of 600,000 requests will be cached
You can check the correct answer by solving this task in the CodeWorlds game.