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

18 Replies, 1760 Views

Wow, didn’t expect so many insights! The `cachetools` lib sounds legit—gonna try that for a project with TTL needs.

Also, the point about unhashable args is huge. I totally would’ve missed that.

One follow-up: how do y’all handle cache invalidation in long-running apps? Like, if the DB updates, do you just clear the whole cache or is there a smarter way?

Cheers for the help!

Messages In This Thread



Users browsing this thread: 1 Guest(s)