AspNetCore.Session.NCache
5.3.800
dotnet add package AspNetCore.Session.NCache --version 5.3.800
NuGet\Install-Package AspNetCore.Session.NCache -Version 5.3.800
<PackageReference Include="AspNetCore.Session.NCache" Version="5.3.800" />
<PackageVersion Include="AspNetCore.Session.NCache" Version="5.3.800" />
<PackageReference Include="AspNetCore.Session.NCache" />
paket add AspNetCore.Session.NCache --version 5.3.800
#r "nuget: AspNetCore.Session.NCache, 5.3.800"
#:package AspNetCore.Session.NCache@5.3.800
#addin nuget:?package=AspNetCore.Session.NCache&version=5.3.800
#tool nuget:?package=AspNetCore.Session.NCache&version=5.3.800
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
Prerequisites
- .NET 6.0+ application.
- NCache SDK 5.3.800 or later.
- An NCache 5.3.800 (or later) server should be up and running, with the target cache already created/registered on it.
Getting Started
Setting up NCache
- Open your application's configuration file:
- .NET / ASP.NET Core:
appsettings.json
- .NET / ASP.NET Core:
- Add an entry for the cache you created on the NCache server, keyed by the cache's name. The
example uses
defaultCache; replace it with your cache's name. - Set
serverto one or more nodes of the cluster where that cache is running. Separate multiple nodes with commas.
appsettings.json
{
"ncache": {
"defaultCache": {
"server": "20.200.20.24,20.200.20.25",
"port": 9800
}
}
}
The cache name in the configuration must match the name you pass in code:
ICache cache = CacheManager.GetCache("defaultCache");
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": "defaultCache",
"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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. 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. |
-
net6.0
- Alachisoft.NCache.SDK (>= 5.3.800)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.0)
- SharpCompress (>= 0.49.1)
- Snappier (>= 1.3.1)
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.800 | 34 | 10/21/2026 |
| 5.3.7 | 227 | 7/29/2026 |
| 5.3.6.1 | 468 | 10/10/2025 |
| 5.3.6 | 335 | 8/13/2025 |
| 5.3.5.1 | 272 | 5/30/2025 |
| 5.3.5 | 362 | 5/16/2025 |
| 5.3.4 | 744 | 6/6/2024 |
| 5.3.3 | 564 | 2/2/2024 |
| 5.3.2 | 851 | 10/9/2023 |
| 5.3.1 | 1,683 | 9/12/2022 |
| 5.3.0 | 1,833 | 4/12/2022 |
| 5.2.1 | 2,258 | 10/12/2021 |
| 5.2.0 | 2,617 | 3/25/2021 |
| 5.1.0 | 2,235 | 11/23/2020 |
| 5.0.4.1 | 1,770 | 11/4/2020 |
| 5.0.4 | 1,879 | 10/28/2020 |
| 5.0.3 | 26,333 | 6/15/2020 |
| 5.0.2.1 | 2,641 | 1/16/2020 |
| 5.0.2 | 1,953 | 1/6/2020 |