Entity Framework (EF) Core Caching Provider Installation
Note
This feature is available in NCache Enterprise and Professional editions.
Prerequisites
The current version of this package supports:
- .NET Framework >= 4.7.2
- Visual Studio 2019
- .NET CoreApp >= 3.0
- Visual Studio 2019
- Entity Framework Core >= 3.1 (For NCache SP4)
Install NuGet Package
Install the following NuGet packages to your application by executing the following command in the Package Manager Console:
- EntityFrameworkCore.NCache for Enterprise
Install-Package EntityFrameworkCore.NCache
- EntityFrameworkCore.NCache for Professional
Install-Package EntityFrameworkCore.NCache.Professional
Include Namespaces
To utilize the APIs, include the following namespaces in your application:
Alachisoft.NCache.EntityFrameworkCore
Alachisoft.NCache.Runtime.Caching
Shipped Sample Code
Sample code for EF Core Caching Provider is bundled with NCache and can be found at:
- .NET Core: [Install_Dir]/samples/dotnetcore/EntityFramework/EFCore
- .NET Framework: [Install_Dir]/samples/dotnet/EntityFramework/EFCore
See Also
Configuring NCache Entity Framework Core Provider
Using NCache Entity Framework Core Caching Provider
Logging Entity Framework Core Caching Provider
Memcached Wrapper and Gateway Support for NCache