PreviousNext

Building a CachedRepository in ASPNET Core

by bill-s, 2018-08-28T04:11:49.315Z

I’m a fan of proper use of design patterns, and you can get big gains from layering multiple patterns together. One prime example of this in web applications is the combination of the Strategy, Repository, and Proxy/Decorator patterns to create the CachedRepository pattern. This pattern separates caching responsibility from persistence responsibility and makes it simple to add caching to an application globally, or on a per-type basis. You can learn more about the CachedRepository here. In this article we’ll drill into a sample application I’ve made available on GitHub that demonstrates how to use the CachedRepository pattern in ASP.NET Core with Entity Framework Core.

Read More