Stash, a graph-based cache for Node.js and Redis
Last night, while trying to figure out the best way to implement caching in my app, I had an idea for a dirt-simple caching system based on a dependency graph. The premise I started with is that one of the hardest things to manage in a cache is dependencies between entities. In order to cache items effectively, you inevitably have to duplicate "child" data inside of "parent" entries. Then, when a child is changed, you have to invalidate the child and its parents, and its parents' parents, and so on. To try to help this, I hacked together a simple Node.js library called Stash, which models…
Stash, a graph-based cache for Node.js and Redis launched on March 3, 2012 with 56 votes, #27 of 340 launches that month and more than 90% of that year's launches. The site was still online in September 2026, 14 years on.
In plain words
Stash is a caching library for Node.js that uses Redis and models cached data as a dependency graph. It solves the problem of cache invalidation by automatically tracking relationships between cached items—when one item changes, Stash walks the graph to invalidate all dependent items without manual management. This eliminates the need to manually track and invalidate parent and child entries separately, simplifying cache management in applications with complex data dependencies.
written from the facts on this page · September 2026
From the sources
A graph-based cache for Node.js, powered by Redis. Contribute to nkohari/stash development by creating an account on GitHub.
In the maker’s words, at launch
Last night, while trying to figure out the best way to implement caching in my app, I had an idea for a dirt-simple caching system based on a dependency graph. The premise I started with is that one of the hardest things to manage in a cache is dependencies between entities. In order to cache items effectively, you…
Does a similar job
all alternatives →

Remote Stash2017 · remotestash.netlify.com · ▲284A directory of resources for remote workers and nomads

FlakeHub Cache: Fast, secure, configurable. A new take on Nix caching2024 · determinate.systems · ▲65Fast, secure, configurable. A bold new take on Nix caching.

More life & fun this month
the category →
A free city-building game in your browser. You are the mayor. You know what the city needs. Now get it past the zoning board, the neighbors, the appeals court and the next election.
Life & fun · 22h ago · permit.petercai.com
- IV
Life & fun · 13d ago · tanzaniaeducationproject.org

Turn a phone, tablet or TV into a sign. Type a message and it fills the screen: welcome signs, timers, Wi-Fi passwords and more. No app, no account, free.
Life & fun · 14d ago · bigwords.page

Play a free virtual guitar online with your keyboard or by touch. Slow songs down and see every chord, string and strum. Acoustic, classic, electric and bass.
Life & fun · 8d ago · guitoro.com

Carrier settings from iPhone, Pixel and Galaxy firmware, decoded and compared: APNs, VoLTE, 5G and Wi-Fi Calling per carrier, and what each build changed.
Life & fun · 12d ago · carrierexplode.com

Life & fun · 22d ago · space.bl2.net
Source: Show HN post ↗ · launch text quoted in part
Launched alongside, March 2012
the whole month →- TUThis up votes itself▲3,531
Life & fun · 2012 · news.ycombinator.com
- AW
I submitted a link, when someone clicks on it I get an up-vote for this article. I don't want people to misuse this I just want to bring attention to this problem. This is the link I used that up-votes this: http://news.ycombinator.com/vote?for=3742742&dir=up&...
Life & fun · 2012

Manage sales and customer relationships directly inside Gmail. Streak is the CRM your team will actually use—integrated, smart, and loved by 750,000+ users.
Work · 2012 · streak.com

Flutter transforms the entire app development process. Build, test, and deploy beautiful mobile, web, desktop, and embedded apps from a single codebase.
Dev tools · 2012 · flutter.io

Life & fun · 2012 · github.com

The latest macOS offers the world’s best way to play — and add to — your collection of music, movies, TV shows, podcasts, audiobooks, and more.
Life & fun · 2012 · itunes.apple.com