FenixKit MongoDB + Redis .NET Minimal API Starter Kit
New
.NET 8  ·  .NET 10  — same price

.NET Minimal API
Starter Kit — MongoDB + Redis

Everything in the MongoDB kit, plus cache done right. Tag-based invalidation, FailOpen behaviour, and a one-flag toggle to disable Redis entirely.

Use code FIRSTXPEOPLE for €15 off → €30

What's inside.

MongoDB Redis 8 Valkey 7.2 StackExchange.Redis ErrorOr Docker Compose Swagger / Swashbuckle .NET 8 .NET 10

Everything in the MongoDB kit

BaseRepository with 7 hooks, offset + cursor pagination, ErrorOr result pattern, RFC 7807 error handler, health checks, Swagger with XML docs, Docker Compose. All included.

Cache-aside built into BaseRepository

Get, insert, update, and delete operations in the base repository transparently check and populate the Redis cache.

3-level tag-based invalidation

Every cached entry is tagged by entity type, entity ID, and custom tags. When a document changes, all entries sharing any of those tags are invalidated automatically — no stale data.

FailOpen / FailClosed behaviour

FailOpen (default) — if Redis is unreachable, the request falls through to MongoDB. FailClosed — errors are surfaced immediately. Toggle per environment via a single config flag.

NullCacheService toggle

Set Cache:Enabled = false and Redis is never connected. A no-op NullCacheService is injected instead. Health check removed automatically. No code changes required.

Valkey compatible

StackExchange.Redis is wire-protocol compatible with Valkey. A docker-compose.valkey.yml is included. Run it with: docker compose -f docker-compose.valkey.yml up --build.

One-time payment. Yours forever.

Full source code, private docs, unlimited projects, entire team included.

45

or €30 with code FIRSTXPEOPLE

Secure checkout via Lemon Squeezy  ·  Instant delivery

Need auth too? See the full stack kit →