News for hackers. Stuff that matters.
Re:Show HN: Decorator to Speed Up Development by pcauthorn on Wednesday May 12, 2021 @08:54AM (#27129733)
Thanks for checking it out!

Good question, this is slightly different than lru_cache in that it persists to disk so it retrieves from the cache even when you rerun the Python interpreter.

Also it gives you a bit of flexibility as when to refresh the cache and to use or ignore function parameters. I often make a change in one 'group', db data for example, and am able to just refresh those methods that gather data from the db.

There are no comments on this comment yet.