Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.1 KB

README.md

File metadata and controls

23 lines (15 loc) · 1.1 KB

EFCache.Redis

Extends EFCache by adding Redis support

I wanted to add L2 Cache to EF using Redis - there was nothing available at the time.

I found EFCache written by Pawel Kadluczka (moozzyk) over on CodePlex https://efcache.codeplex.com/

https://www.nuget.org/packages/EntityFramework.Cache

Which gave me a very good starting point. I forked EFCache and asked Pawel to pull my changes, however for very good reasons, Pawel declined to do so. I added dependencies to the core EFCache project that Pawel didnt want to force every consumer of EFCache to carry. He suggested I create my own NuGet Package, and use EFCache as a dependency instead. So here it is, here is my code.

See the package on NuGet: https://www.nuget.org/packages/EFCache.Redis

You can add via the package manager in Visual Studio or Package Manager Console: Install-Package EFCache.Redis

Big thanks to Geir Sagberg who has made the package work better at larger scale (especially with Azure Redis), with more concurrent clients and made it fail more gracefully should caching fail. My own use cases had not stretched the package very far.