Setting Up Development Environment
In order to begin development of applications using NCache features, you need to have Microsoft Visual Studio and NCache installed.
To start with NCache, you can either manually add references to NCache assemblies, or install NuGet packages and specify namespaces in your application.
Manually Reference NCache Assemblies
To your Visual Studio solution, you need to add references to NCache APIs in order to utilize the caching features.
In Solution Explorer, right-click on the Application name and select Add.
Select Reference.
Reference Manager screen appears.
Select Browse from the left panel and click the Browse button to select the reference.
Select the files to reference screen appears.
Browse to
%NCHOME%\NCache\bin\assembly\4.0
Select the following references from the list of NCache assemblies:
Client-side Assemblies
Alachisoft.NCache.Runtime
Alachisoft.NCache.Web
ASP.NET Sessions
Alachisoft.NCache.SessionState
Alachisoft.NCache.SessionStateManagement
Alachisoft.NCache.SessionStoreProvider
Alachisoft.NCache.OutputCache
ASP.NET Core (Browse to %NCHOME%\NCache\bin\assembly\netcore20)
Alachisoft.NCache.SessionState
Alachisoft.NCache.SessionStateManagement
Alachisoft.NCache.CoreSessionStoreProvider
Install NuGet Packages
NCache provides NuGet packages for all editions which contain client libraries. To get started, you need to install the 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 the edition you are using.
Note
Replace "x.x.x" with the version of NCache you are using.
Install-Package Alachisoft.NCache.Enterprise.SDK –Version x.x.x
Install-Package Alachisoft.NCache.Professional.SDK –Version x.x.x
Install-Package Alachisoft.NCache.OpenSource.SDK –Version x.x.x
Specify Namespaces
You can now begin creating applications utilizing NCache's features, however, you need to specify the following namespace to get started:
using Alachisoft.NCache.Web.Caching;
See Also
Create Cache
Connecting to Cache
Add Data to Cache
Client SIde API Programming