Install NCache Packages in Your Application
NuGet Packages for ASP.NET/ASP.NET Core
NCache provides NuGet packages which contain client libraries. Note that there is no licensing required for clients in case of Server activated licensing model.
Apart from client libraries, the NuGet package copies client.ncconf and config.ncconf to the application's local directory.
Important
- If NCache is installed, NCache tries to read cache information from local configuration files first. If the required information is not found from local configs, it reads that information from configs inside NCache installation directory.
- If NCache is not installed on the machine where the application is running, please make sure that all required information is given in these local configs. To create a client cache in this case, please follow the steps as provided in Admin Guide.
Client.ncconf contains the information about the cache servers of each cache that the application needs to access.
Config.ncconf is used for local inproc cache and inproc client caches. For client cache, config.ncconf must also contain the name of the clustered cache that this client cache is a part of.
Installing NuGet Packages
To install NuGet packages, open Visual Studio and go to Tools -> NuGet Package Manager -> Package Manager Console.
On the console, execute the following commands to install the NuGet packages for Enterprise edition.
You can install NuGet packages for the following:
Enterprise SDK (all client libraries)
Install-Package Alachisoft.NCache.SDK
Distributed Lucene
Install-Package Lucene.Net.NCache
IDistributedCache
Install-Package NCache.Microsoft.Extensions.Caching
ASP.NET Sessions
Install-Package AspNet.SessionState.NCache
ASP.NET Core Sessions
Install-Package AspNetCore.Session.NCache
Entity Framework
Entity Framework 6
Install-Package EntityFramework6.NCache
Entity Framework Core
Install-Package EntityFrameworkCore.NCache
LINQ
Install-Package Linq.NCache
NHibernate
Install-Package NHibernate.NCache
ASP.NET SignalR
Install-Package AspNet.SignalR.NCache
ASP.NET Core SignalR
Install-Package AspNetCore.SignalR.NCache
Maven Package for Java
NCache provides multiple Maven packages that contain client libraries.
Install Maven Packages
To install Maven packages, open Java IDE of your preference and add the following dependencies in the pom.xml file.
All Client Libraries
<!-- https://mvnrepository.com/artifact/com.alachisoft.ncache/ncache-client -->
<dependency>
<groupId>com.alachisoft.ncache</groupId>
<artifactId>ncache-client</artifactId>
<version>5.2.0</version>
</dependency>
All Server Side Features
<!-- https://mvnrepository.com/artifact/com.alachisoft.ncache/ncache-runtime -->
<dependency>
<groupId>com.alachisoft.ncache</groupId>
<artifactId>ncache-runtime</artifactId>
<version>5.2.0</version>
</dependency>
Hibernate
<!-- https://mvnrepository.com/artifact/com.alachisoft.ncache/ncache-hibernate -->
<dependency>
<groupId>com.alachisoft.ncache</groupId>
<artifactId>ncache-hibernate</artifactId>
<version>5.2.0</version>
</dependency>
Spring
<!-- https://mvnrepository.com/artifact/com.alachisoft.ncache/ncache-spring -->
<dependency>
<groupId>com.alachisoft.ncache</groupId>
<artifactId>ncache-spring</artifactId>
<version>5.2.0</version>
</dependency>
Javax Sessions
<!-- https://mvnrepository.com/artifact/com.alachisoft.ncache/ncache-javax-sessions -->
<dependency>
<groupId>com.alachisoft.ncache</groupId>
<artifactId>ncache-javax-sessions</artifactId>
<version>5.2.0</version>
</dependency>
Jakarta Sessions
<!-- https://mvnrepository.com/artifact/com.alachisoft.ncache/ncache-sessions -->
<dependency>
<groupId>com.alachisoft.ncache</groupId>
<artifactId>ncache-sessions</artifactId>
<version>5.2.0</version>
</dependency>
NPM Packages for Node.js
NCache provides npm packages that contain various libraries for NCache to work in your client and server environments.
Install npm Packages
To install npm packages for NCache Enterprise, run the following commands in a shell environment:
All Client Libraries
npm install ncache-client
Sessions
npm install ncache-sessions
See Also
Windows Installation
Network Installation with PowerShell
Evaluation Period Management
License Management