Adding an IMemoryCache to EF Core Repository Pattern

In prior videos, we wrapped a repository pattern around our EF Core calls -- and yes, this drives some people nuts. In this video, we'll look at enhancing our repository by adding a cache with IMemoryCache! ---- Timestamps: 0:00 - Intro 1:07 - Recap On Code 3:15 - The Caching Repository 4:30 - Dometrain Courses 4:55 - Continuing 5:25 - Stampede Protection Concept 8:00 - Caching Other Repository Methods 11:51 - GetAllAsync 16:08 - See It In Action 18:48 - Summary ---- 🔑 Membership & Subscriptions: 📨 Weekly Newsletter: https://weekly.devleader.ca 🏘️ Private Discord Community: https://sidestack.io/devleader 🧠 Courses: All Courses: https://www.devleader.ca/courses Get Promoted As A Software Engineer: https://dometrain.com/course/career-g... Nailing The Behavioral Interview: https://dometrain.com/course/career-n... Getting Started with C#: https://dometrain.com/course/getting-... Deep dive C#: https://dometrain.com/course/deep-div... C# Zero to Hero BUNDLE: https://dometrain.com/bundle/from-zer... Reflection in .NET: https://dometrain.com/course/from-zer... Refactoring For C# Devs: https://dometrain.com/course/from-zer... [FREE] Intro to Software Development:    • [FREE MINI COURSE] - Introduction To Softw...   🗣️ Social Media & Links: All My Links: https://linktr.ee/devleader Vlogs: ‪@DevLeaderBTS‬ ‪@CodeCommute‬ Blog: https://www.devleader.ca/ TikTok:   / devleader   LinkedIn:   / nickcosentino   Threads: https://threads.net/@dev.leader Twitter:   / devleaderca   Facebook:   / devleaderca   Instagram:   / dev.leader   GitHub: https://github.com/ncosentino/ Twitch:   / devleaderca   YouTube:    / @devleader   ❤️ Affiliations & Products/Services That I Love: - ‪@BrandGhostAI‬ for all of my content creation: https://brandghost.ai AI shorts helper Opus Clip: https://opus.pro/?via=2f9e97 VPS hosting from RackNerd: https://my.racknerd.com/aff.php?aff=9013 VPS hosting from Contabo: https://www.jdoqocy.com/click-1010286... Newsletter platform ConvertKit: https://convertkit.com/?lmref=c5X7KQ Newsletter referral system SparkLoop: https://dash.sparkloop.app/signup?aff... ---- #softwareengineering #softwaredeveloper #softwareengineer

EF Core: Repository Pattern and IMemoryCache Tutorial
▶︎

EF Core: Repository Pattern and IMemoryCache Tutorial

Nick Chapsas Is Right About Clean Architecture (Mostly)
▶︎

Nick Chapsas Is Right About Clean Architecture (Mostly)

Salesforce Interview Accelerator - APEX - Interfaces v Inheritance
▶︎

Salesforce Interview Accelerator - APEX - Interfaces v Inheritance

Are You Accidentally Crippling Your EF Core Queries?
▶︎

Are You Accidentally Crippling Your EF Core Queries?

Discriminated Unions Are Finally in .NET But
▶︎

Discriminated Unions Are Finally in .NET But

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isn’t 1.0 - Andrew Kelley Explains
▶︎

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isn’t 1.0 - Andrew Kelley Explains

Billionaire's WARNING: I'm SELLING. The Crash Is Already Here!
▶︎

Billionaire's WARNING: I'm SELLING. The Crash Is Already Here!

What Nobody Tells You About Being a Quant
▶︎

What Nobody Tells You About Being a Quant

Keynote: After the AI Hype – What’s Real, and What’s Next - Richard Campbell - 2026
▶︎

Keynote: After the AI Hype – What’s Real, and What’s Next - Richard Campbell - 2026

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup
▶︎

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

Learn Blazor Through Project In 2 Hours (.NET 10) | Identity | EF Core | Clean Architecture
▶︎

Learn Blazor Through Project In 2 Hours (.NET 10) | Identity | EF Core | Clean Architecture

Co-Creator of Haskell: Functional Programming, Thinking in Types, Useless Languages | Simon Jones
▶︎

Co-Creator of Haskell: Functional Programming, Thinking in Types, Useless Languages | Simon Jones

Are we really doing this again
▶︎

Are we really doing this again

Using The FASTEST Cache For Your ASP NET Core Application
▶︎

Using The FASTEST Cache For Your ASP NET Core Application

7 Design Patterns EVERY Developer Should Know
▶︎

7 Design Patterns EVERY Developer Should Know

From REST to gRPC to Messaging: SCALING Microservices the Right Way!
▶︎

From REST to gRPC to Messaging: SCALING Microservices the Right Way!

Valve Steam Machine Review: GPU & CPU Benchmarks, SteamOS Test, Thermals, Noise, and Price
▶︎

Valve Steam Machine Review: GPU & CPU Benchmarks, SteamOS Test, Thermals, Noise, and Price

Why AI Agents are either the best or worst thing we’ve ever built
▶︎

Why AI Agents are either the best or worst thing we’ve ever built

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra
▶︎

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra

The Right Way To Build Async APIs in ASP.NET Core
▶︎

The Right Way To Build Async APIs in ASP.NET Core