Linq.NCache 5.3.800

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

Linq.NCache

This package lets you run LINQ queries directly against data stored in NCache, letting you filter, project, sort, and aggregate cached objects using standard .NET query syntax instead of NCache's native query APIs, across both .NET Framework and ASP.NET Core / .NET applications.

Installation

Install-Package Linq.NCache

or, using the .NET CLI:

dotnet add package Linq.NCache

Prerequisites

  • .NET Framework or ASP.NET Core / .NET application
  • NCache Enterprise Edition SDK 5.3.800 or later
  • An NCache 5.3.800 or later Enterprise Edition server up and running, with the target cache already created/registered on it.

Getting Started

Setting up NCache

  1. Open your application's configuration file:
    • .NET / ASP.NET Core: appsettings.json
    • .NET Framework / ASP.NET: app.config or web.config
  2. 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.
  3. Set server to 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
    }
  }
}

app.config / web.config

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

The cache name in the configuration must match the name you pass in code:

ICache cache = CacheManager.GetCache("defaultCache");

Setting up LINQ Queries

Connect to the cache and query it through NCacheQuery<T>, which implements IQueryable<T>:

using Alachisoft.NCache.Client;
using Alachisoft.NCache.Linq;

ICache cache = CacheManager.GetCache("YourCacheName");

IQueryable<Product> products = new NCacheQuery<Product>(cache);

var lowStockProducts =
    from product in products
    where product.UnitsAvailable < 5
    select product;

Standard LINQ operators like filtering, projection, sorting, grouping, and aggregation are translated into cache queries, so only matching results are transferred back to the client instead of the entire dataset.

Configuring Query Indexes

For a class to be queried efficiently, add a query index for it on the cache:

  1. Open NCache Web Manager (default: http://localhost:9801/) and select your cache. Stop the cache if it's currently running.
  2. Go to Advanced Settings (Clustered Cache) → Query Indexes.
  3. Click Add → Browse, and select the assembly containing your model class.
  4. Expand the assembly, check the class (and the attributes you want indexed), then click Add Selected Classes → OK.
  5. Save changes and start the cache.

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 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. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Linq.NCache:

Package Downloads
LinqPad.NCache

Query data stored in NCache Enterprise using LINQPad.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.3.800 137 10/22/2026
5.3.7 230 7/31/2026
5.3.6.1 687 10/10/2025
5.3.6 321 8/13/2025
5.3.5 411 5/30/2025
5.3.3.1 4,446 2/9/2024
5.3.3 475 2/1/2024
5.3.1.1 375 3/19/2024
5.3.1 570 2/12/2024
5.3.0 1,797 4/12/2022