Memoize with cache reset in Python | Hacker News Reader