Case study: find a leak from a growing cache
55 min · Advanced
Need help? Ask a tutor on WhatsApp (opens in a new tab)A cache that only ever adds entries is a memory leak: the old entries are never used again, but a static map still reaches them, so the garbage collector must keep them. Putting a limit on the cache turns that steady growth into a flat line.
Sign in to continue this lesson
Create an account to read every lesson, practise with the exercises and keep track of your progress.