This product was not featured by Product Hunt yet.
It will not be visible on their landing page and won't be ranked (cannot win product of the day regardless of upvotes).

Product Thumbnail

Layercache

Stop DDOS-ing your own database.

Open Source
Developer Tools
GitHub
Visit WebsiteSee on Product HuntGithub

Hunted by날다람쥐날다람쥐

Unified multi-layer caching for Node.js with memory, Redis, stampede prevention, and invalidation helpers.

Top comment

👋 Hey Product Hunt! I built **layercache** because I kept running into the same problem in production: cache stampedes taking down my database during traffic spikes. You know the scenario — 100 requests hit an empty cache at the same time, and your DB gets hammered 100 times for the exact same query. I wanted a cache that handles this automatically, not something I had to bolt on myself. **layercache** is a multi-layer cache for Node.js (Memory → Redis → Disk) with stampede prevention built in from day one: - 🛡️ **100 concurrent requests = 1 DB call. Always.** No extra config. - 🔄 **Auto backfill** — L1 miss → L2 hit → L1 auto-filled. Zero plumbing. - 🏷️ **Tag invalidation** — `invalidateByTag('user:123')` and you're done. - ⚡ **Distributed single-flight** — Cross-instance dedup via Redis locks. - 🔧 **Resilience** — Circuit breaker, graceful degradation, stale-while-revalidate. - 📦 **Tiny footprint** — Only 2 runtime deps (`async-mutex` + `msgpack`). It also ships with middleware for **Express, Fastify, Hono, tRPC, GraphQL, and Next.js** — plus OpenTelemetry and Prometheus support out of the box. ```ts import { CacheStack, MemoryLayer, RedisLayer } from 'layercache' const cache = new CacheStack([ new MemoryLayer({ ttl: 60_000 }), new RedisLayer({ client: new Redis(), ttl: 3_600_000 }), ]) const user = await cache.get('user:123', () => db.findUser(123)) ``` I'd love to hear what you think! Happy to answer any questions about caching strategy, migration from node-cache-manager/keyv, or anything else. ⭐ If this saves you some database calls, consider starring us on GitHub! https://github.com/flyingsquirre...

Comment highlights

No comment highlights available yet. Please check back later!

About Layercache on Product Hunt

Stop DDOS-ing your own database.

Layercache was submitted on Product Hunt and earned 2 upvotes and 1 comments, placing #136 on the daily leaderboard. Unified multi-layer caching for Node.js with memory, Redis, stampede prevention, and invalidation helpers.

Layercache was featured in Open Source (68.4k followers), Developer Tools (512.4k followers) and GitHub (41.2k followers) on Product Hunt. Together, these topics include over 101.2k products, making this a competitive space to launch in.

Who hunted Layercache?

Layercache was hunted by 날다람쥐. A “hunter” on Product Hunt is the community member who submits a product to the platform — uploading the images, the link, and tagging the makers behind it. Hunters typically write the first comment explaining why a product is worth attention, and their followers are notified the moment they post. Around 79% of featured launches on Product Hunt are self-hunted by their makers, but a well-known hunter still acts as a signal of quality to the rest of the community. See the full all-time top hunters leaderboard to discover who is shaping the Product Hunt ecosystem.

Want to see how Layercache stacked up against nearby launches in real time? Check out the live launch dashboard for upvote speed charts, proximity comparisons, and more analytics.