.NET Technology Show

Backstage pass to all things ServiceStack & .NET

Listen

ASP.NET Core Output Caching

A look at how to use ASP.NET Core Output Caching and ServiceStack.Redis to cache the response of ServiceStack APIs in Redis


This episode discusses how to use ASP.NET Core Output Caching to improve the performance of ServiceStack applications and how to enable Output Caching in the request pipeline, configure caching behaviors for ServiceStack Endpoints, and use the [OutputCache] attribute to apply caching at the service level.

It also demonstrates how to implement a distributed cache using Redis, enabling scaling and sharing cache data across multiple servers and emphasizes the importance of using Output Caching strategically to optimize the performance of frequently accessed data, while acknowledging the need for appropriate cache invalidation strategies to ensure data freshness.