DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Node.js Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Node.js
What's a valid eviction strategy to pair with a growing cache, to prevent unbounded memory growth?
A
None needed — caches are always safe
B
A hard size cap (like LRU eviction), a TTL-based expiry, or explicit removal tied to a relevant lifecycle event
C
Restarting the server every hour
D
Converting the cache to an array instead of a Map
Check Answer