Async Promise cache PART 2: Invalidation strategies (with solutions!)
π Editor's Note:
Please read PART 1 to understand how/when to use a Promise cache.
Since my previous article, many people have asked me how to approach cache invalidation. It's a fair question, given its prominence among the top two hardest challen...
srjsdev.hashnode.dev5 min read
Steven Olsen
Online educator and mentor for Sr. JS developers
I just learned that there's an npm lib that implements this as well (if you wanna be lazy like the tree raccoon in that image lol):
npmjs.com/package/cachified
Very hot topic!