If you’re using python cache, always add a `maxsize`. Unlimited caches are a ticking time bomb.
Also, don’t forget to clear the cache (`cache_clear()`) during tests. Nothing worse than tests failing because of cached values.
For advanced use cases, `cachetools` is worth a look. It’s like `lru_cache` on steroids.
Also, don’t forget to clear the cache (`cache_clear()`) during tests. Nothing worse than tests failing because of cached values.
For advanced use cases, `cachetools` is worth a look. It’s like `lru_cache` on steroids.
