Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumPythonfunctools.lru_cacheSingle-choice MCQ

Why does decorating this method with `@lru_cache` create a subtle problem?

from functools import lru_cache class Repo: @lru_cache def fetch(self, key): return expensive_lookup(key)