Install NuGet Packages for .NET and .NET Framework
NCache provides NuGet packages which contain client libraries. To get started, you need to install the necessary NCache SDK NuGet packages.
Steps to Install NCache SDK NuGet Package
Open Visual Studio and go to Tools -> NuGet Package Manager -> Package Manager Console.
On the console, execute the required command to install the NCache SDK NuGet package according to your requirements.
Note
Replace x.x.x with the version of NCache you are using.
Install-Package Alachisoft.NCache.SDK –Version x.x.x
You can also install NuGet Packages for the following .NET/.NET Framework Integrations:
ASP.NET Core Sessions
Install-Package AspNetCore.Session.NCache –Version x.x.x
ASP.NET Core SignalR
Install-Package AspNetCore.SignalR.NCache –Version x.x.x
ASP.NET Core Response Caching
Install-Package NCache.Microsoft.Extensions.Caching –Version x.x.x
ASP.NET Core Data Protection Provider
Install-Package AspNetCore.DataProtection.NCache –Version x.x.x
ASP.NET Sessions
Install-Package AspNet.SessionState.NCache –Version x.x.x
ASP.NET SignalR
Install-Package AspNet.SignalR.NCache –Version x.x.x
ASP.NET View State Caching
Install-Package AspNet.ViewState.NCache –Version x.x.x
ASP.NET Output Cache Provider
Install-Package AspNet.OutputCache.NCache –Version x.x.x
Entity Framework Core
Install-Package EntityFrameworkCore.NCache –Version x.x.x
IdentityServer4
Install-Package AspNetCore.IdentityServer4.Store.NCache –Version x.x.x
NuGet Package: Windows/Linux Installer
Unlike the Remote Client, the mentioned installers allow you to opt for installation options like Cache Server and Developer/QA, which have more complete feature sets. For details about the prerequisites and steps involved in installing NCache through these installers, refer to the following:
Supported .NET Versions
The supported .NET versions are as follows:
Product | Versions |
---|---|
.NET | 5.0, 6.0, 7.0, 8.0 |
.NET Framework | 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Note
For server-side deployments, .NET 4.8 and .NET 6.0 are the supported versions.
Important
Ensure that you are using the JSON Serialization format for .NET 8.0, as BinaryFormatter Serialization methods are obsolete and prohibited in .NET 8.0. However, if you still want to use Binary Serialization, you can suppress the BinaryFormatter, as discussed here.