AspNetCore.Session.NCache 5.3.7

dotnet add package AspNetCore.Session.NCache --version 5.3.7
                    
NuGet\Install-Package AspNetCore.Session.NCache -Version 5.3.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AspNetCore.Session.NCache" Version="5.3.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AspNetCore.Session.NCache" Version="5.3.7" />
                    
Directory.Packages.props
<PackageReference Include="AspNetCore.Session.NCache" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AspNetCore.Session.NCache --version 5.3.7
                    
#r "nuget: AspNetCore.Session.NCache, 5.3.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AspNetCore.Session.NCache@5.3.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AspNetCore.Session.NCache&version=5.3.7
                    
Install as a Cake Addin
#tool nuget:?package=AspNetCore.Session.NCache&version=5.3.7
                    
Install as a Cake Tool

AspNetCore.Session.NCache

NCache Session Provider for ASP.NET Core applications. This package lets you offload ASP.NET Core session state storage to NCache, giving you a fast, distributed, and highly available alternative to in-memory or SQL Server-backed session stores — enabling your application to scale out across multiple web servers while keeping session data consistent.

Installation

Install-Package AspNetCore.Session.NCache

or, using the .NET CLI:

dotnet add package AspNetCore.Session.NCache

What is Installed

Installing this package adds the following NCache configuration files to your project:

  • client.ncconf — Defines the cache client settings, including the cache name and the list of server nodes the client connects to.
  • config.ncconf — Contains the cache configuration (cache topology, partitions, eviction policy, etc.) used when the cache is created/registered.
  • tls.ncconf — Contains TLS/SSL settings used to secure communication between the client and the NCache cluster, if enabled.

Prerequisites

  • .NET 6.0+ Application.
  • NCache SDK 5.3.7.1 or later.
  • An NCache 5.3.7 (or later) server should be up and running, with the target cache already created/registered on it.

Getting Started

Setting up NCache

Before running your application (if NCache is not installed on the current machine), you need to update client.ncconf so the client knows which cache to connect to and where to find it:

  1. Open client.ncconf.
  2. Locate the cache entry named myCache and rename it to the name of your actual cache (the cache you created/registered on the NCache server).
  3. Under the server settings, update the server address to point to one of the nodes in the cluster where that cache is running.

Example:

<cache id="myCache" ... >
  <server name="10.0.0.1" ... />
</cache>

Change myCacheYourCacheName, and 10.0.0.1 → the IP/hostname of a node hosting YourCacheName.

Setting up Package

Sessions can be initialized by the AddNCacheSession extension method in your Program.cs file as shown below:

var options = builder.Configuration.GetSection("NCacheSettings"); // fetch options from appsettings.json

builder.Services.AddNCacheSession(options) // Add NCache Session with given settings

app.UseNCacheSession(); // Ensure NCache session is used

Configuration

ASP.NET Core (appsettings.json):

{
  "NCacheSettings": {
    "SessionAppId": "demoApp",
    "SessionOptions": {
      "CookieName": "AspNetCore.Session",
      "CookieDomain": null,
      "CookiePath": "/",
      "CookieHttpOnly": "True",
      "IdleTimeout": "5",
      "CookieSecure": "None"
    },

    "CacheName": "demoCache",
    "EnableLogs": "True",
    "RequestTimeout": "90"
  },
}

Adjust cache name and other settings as needed for your environment.

Resources

Technical Support

Alachisoft provides various technical support resources.

Visit the Alachisoft Support Center to select a support resource appropriate for your issue. To request additional features or report a documentation discrepancy, contact support@alachisoft.com.

License

Copyright © 2026 Alachisoft. All rights reserved.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.3.7 42 7/29/2026
5.3.6.1 442 10/10/2025
5.3.6 314 8/13/2025
5.3.5.1 259 5/30/2025
5.3.5 337 5/16/2025
5.3.4 712 6/6/2024
5.3.3 543 2/2/2024
5.3.2 833 10/9/2023
5.3.1 1,666 9/12/2022
5.3.0 1,808 4/12/2022
5.2.1 2,234 10/12/2021
5.2.0 2,596 3/25/2021
5.1.0 2,213 11/23/2020
5.0.4.1 1,754 11/4/2020
5.0.4 1,859 10/28/2020
5.0.3 26,312 6/15/2020
5.0.2.1 2,618 1/16/2020
5.0.2 1,933 1/6/2020