What's the best way to implement python cache for better performance? or How does python cache work a

18 Replies, 1728 Views

Caching is like salt—a little improves things, too much ruins it.

I use python cache mostly for config loading or static data. For anything dynamic, I’d rather just eat the perf hit than deal with stale data.

Fun fact: `lru_cache` uses a dict under the hood. Neat, right?

Messages In This Thread



Users browsing this thread: 1 Guest(s)