Posts

Showing posts from June, 2026

ASP.NET Core 9 API: Using FusionCache in an ASP.NET Core Minimal API

Image
Using FusionCache in an ASP.NET Core Minimal API This article explains how the current Core_FusionCache application uses FusionCache with ASP.NET Core Minimal APIs, Entity Framework Core, SQL Server, and Redis. The application exposes product CRUD endpoints, reads product data from the Products table, caches read responses, and invalidates stale cache entries after write operations. Figure 1: FusionCache read and write flow used by this application. What is FusionCache? FusionCache is an advanced caching library for .NET applications. It gives an application a single cache API while supporting useful production features such as in-memory caching, distributed caching, fail-safe behavior, cache stampede protection, eager refresh, serialization, and backplane notifications. In this application, FusionCache is configured as a two-level cache: L1 cache: a fast in-memory cache inside the running ASP.NET Core proce...