---
title: "Discussion on \"Async Promise cache PART 2: Invalidation strategies (with solutions!)\" | Hashnode"
description: "Discussion on \"Async Promise cache PART 2: Invalidation strategies (with solutions!)\". How to TTL and LRU your cache to a safe and healthy life."
url: "https://hashnode.com/posts/async-promise-cache-invalidation-strategies/638a5366b343d198d56cc8d0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Async Promise cache PART 2: Invalidation strategies (with solutions!)](https://srjsdev.hashnode.dev/async-promise-cache-invalidation-strategies?utm_source=hashnode&utm_medium=feed)

How to TTL and LRU your cache to a safe and healthy life.

Dec 2, 2022 · 5 min read · srjsdev.hashnode.dev  
Updated Dec 12, 2022  
Read the article

-   [#invalidation](https://hashnode.com/tag/invalidation)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#caching](https://hashnode.com/tag/caching)
-   [#promises](https://hashnode.com/tag/promises)
-   [#strategy](https://hashnode.com/tag/strategy)

## Written by

[Steven Olsen](https://hashnode.com/@srjsdev)

@srjsdev

  
[View profile](https://hashnode.com/@srjsdev)

Online educator and mentor for Sr. JS developers

With 20+ years of dev experience, I'm an online educator, mentor, and consultant--teaching practical, advanced topics to developers like you on how to write: ✅ new AI/LLM features ✅ maintainable JS code ✅ scalable web apps ...yup that's about it! 🎤

## Responses 1

Markdown supported · ⌘↵ to post

[Steven Olsen](https://hashnode.com/@srjsdev)

[Dec 2, 2022](https://hashnode.com/posts/async-promise-cache-invalidation-strategies/638a5366b343d198d56cc8d0/comment/638a790c1338cf81a8765601)

I just [learned](https://twitter.com/kentcdodds/status/1598555843733045248) 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](https://www.npmjs.com/package/cachified)

Very hot topic!
