NCache.AspNetCore.OutputCaching 5.3.800

dotnet add package NCache.AspNetCore.OutputCaching --version 5.3.800
                    
NuGet\Install-Package NCache.AspNetCore.OutputCaching -Version 5.3.800
                    
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="NCache.AspNetCore.OutputCaching" Version="5.3.800" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NCache.AspNetCore.OutputCaching" Version="5.3.800" />
                    
Directory.Packages.props
<PackageReference Include="NCache.AspNetCore.OutputCaching" />
                    
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 NCache.AspNetCore.OutputCaching --version 5.3.800
                    
#r "nuget: NCache.AspNetCore.OutputCaching, 5.3.800"
                    
#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 NCache.AspNetCore.OutputCaching@5.3.800
                    
#: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=NCache.AspNetCore.OutputCaching&version=5.3.800
                    
Install as a Cake Addin
#tool nuget:?package=NCache.AspNetCore.OutputCaching&version=5.3.800
                    
Install as a Cake Tool

NCache Output Cache Provider for ASP.NET Core

NCache Output Cache Provider for ASP.NET Core applications. This package lets you use NCache as the backing store for ASP.NET Core Output Caching, allowing cached HTTP responses to be shared across multiple application instances instead of being stored in memory on individual servers.

Installation

Install-Package Alachisoft.NCache.OutputCacheProvider

or, using the .NET CLI:

dotnet add package Alachisoft.NCache.OutputCacheProvider

Prerequisites

  • ASP.NET Core (.NET 8) and (.NET 10) 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

Declare the cache server(s) within your configuration file:

appsettings.json

{
  "NCache": {
    "CacheName": "defaultCache",
    "ServerList": [
      { "Ip": "10.0.0.1", "Port": 9800 },
      { "Ip": "10.0.0.2" }
    ]
  }
}

app.config / web.config

<configuration>
  <configSections>
    <section name="ncache" type="Alachisoft.NCache.Client.NCacheSection, Alachisoft.NCache.Client" />
  </configSections>
  <ncache>
    <caches>
      <add name="defaultCache" server="10.0.0.1" port="9800" />
    </caches>
  </ncache>
</configuration>

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

Setting up Package

  1. Register ASP.NET Core Output Caching:
builder.Services.AddOutputCache();
  1. Register the NCache Output Cache provider using either:

    • Configuration — bind settings from appsettings.json.
    • Programmatic Configuration — configure the options directly in code (see Configuration section below).
  2. Enable Output Cache middleware:

app.UseOutputCache();
  1. Mark endpoints as cacheable using ASP.NET Core's standard [OutputCache] attribute or .CacheOutput() extension methods.

Configuration

Using appsettings.json:

{
  "NCacheOutputCache": {
    "CacheName": "defaultCache",
    "ServerList": [
      {
        "Ip": "20.200.20.29"
      }
    ],
    "EnabledLogs": true,
    "EnableDetailLogs": true,
    "ConnectionString": "User Id=cache_user;Password=cache_pass;Data Source=localhost:1521/XEPDB1;",
    "UseGMSA": true,
    "UserName": "admin",
    "Password": "password"
  }
}

Register the provider:

builder.Services.AddOutputCache();

builder.Services.AddNCacheOutputCacheProvider(
    builder.Configuration.GetSection("NCacheOutputCache"));

Or configure programmatically:

builder.Services.AddOutputCache();

builder.Services.AddNCacheOutputCacheProvider(options =>
{
    options.CacheName = "defaultCache";

    options.ServerList = new List<NCacheOutputCacheOptions.ServerConfig>
        {
            new NCacheOutputCacheOptions.ServerConfig
            {
                Ip = "20.200.20.29"
            }
        };

    options.EnabledLogs = true;
    options.EnableDetailLogs = true;
    options.ConnectionString = "User Id=cache_user;Password=cache_pass;Data Source=localhost:1521/XEPDB1;";
    options.UseGMSA = true;
    options.UserName = "admin";
    options.Password = "password";
});

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

Note

AddOutputCache() is still required. AddNCacheOutputCacheProvider() replaces only the backing store used by ASP.NET Core Output Caching.

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 net8.0 is compatible.  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 is compatible.  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. 
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.800 120 10/26/2026
5.3.7 162 8/4/2026