Jan 10, 2023
It should be noted that @lru_cache should only ever be used with "pure functions", i.e. functions whose output value depends solely on its input values. That means it must not change any global state, make any requests outside its context, etc.