Slide 1

Slide 1 text

Caching in .NET Core FOR FUN AND PROFIT

Slide 2

Slide 2 text

John Callaway • Professional developer since 1999 • Specialize in web technologies • Primarily with line-of-business • Enjoy learning new tech • Microsoft MVP

Slide 3

Slide 3 text

What is caching? In computing, a cache is a hardware or software component that stores data so future requests for that data can be served faster; the data stored in a cache might be the result of an earlier computation, or the duplicate of data stored elsewhere.

Slide 4

Slide 4 text

Types of caching • Response or Client Caching • OutputCache • Memory Cache • Distributed Cache using Redis • Others?

Slide 5

Slide 5 text

Benefits of caching • Save server roundtrips • Decrease response time • Improve performance • Save money?

Slide 6

Slide 6 text

Best practices • Cache early, cache often • Caches should be relatively small • Expire Cache

Slide 7

Slide 7 text

Let’s see some code!

Slide 8

Slide 8 text

Caching in .NET Core John Callaway @matsubonsai www.1north.com

Slide 9

Slide 9 text

Appendix Response Caching and In Memory Caching in ASP.NET Core 1.0 https://www.codeproject.com/articles/1111260/response-caching-and-in-memory-caching-in-asp-net Introduction to in-memory caching in ASP.NET Core https://docs.microsoft.com/en-us/aspnet/core/performance/caching/memory Distributed Cache using Redis and ASP.NET Core https://www.codeproject.com/Articles/1161890/Distributed-cache-using-Redis-and-ASP-NET-Core