NCache.OSS.StackExchange.Redis.Wrapper 5.3.6.2

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

NCache OSS Wrapper for StackExchange.Redis

A compatibility layer that enables .NET applications to use NCache as a drop-in replacement for Redis with the familiar StackExchange.Redis API.

Package Versions

Package Version
NCache.StackExchange.Redis 5.3.6.2
Alachisoft.NCache.SDK >= 5.3.6.2
Supported StackExchange.Redis >= 2.12.14

Overview

NCache is an extremely fast and scalable distributed cache for .NET applications. This wrapper allows you to migrate from Redis to NCache with minimal code changes by providing implementations of the StackExchange.Redis interfaces.

Key Benefits:

  • Migrate from Redis to NCache without rewriting your application
  • Use familiar StackExchange.Redis API patterns
  • Leverage NCache's enterprise features (clustering, replication, persistence)
  • Maintain existing Redis-based code while gaining NCache performance

Getting Started

1. Configure the cache name

The wrapper resolves which NCache cache to connect to from a single identifier, typically read from your app's configuration:

<appSettings>
  <add key="CacheId" value="democache" />
</appSettings>

2. Connect and get a database handle

using Alachisoft.NCache.Client;
using NCache.OSS.StackExchange.Redis;
using System.Configuration;

string cacheName = ConfigurationManager.AppSettings["CacheId"];

ConnectionMultiplexer mux = ConnectionMultiplexer.Connect(cacheName);
INCacheDatabase db = mux.GetDatabase();

mux and db behave like a standard StackExchange.Redis ConnectionMultiplexer/IDatabase pair, so existing Redis call sites — string get/set, key expiration and TTL, bulk operations, pub/sub, locks, and so on — work against db unchanged.

3. (Optional) Reach NCache-specific features

ICache cache = mux.GetNCacheInterface(cacheName);

GetNCacheInterface hands back the underlying NCache ICache, useful for operations outside the Redis surface for NCache-only capabilities.

4. (Optional) Wire up logging

using Microsoft.Extensions.Logging;

ILoggerFactory loggerFactory = LoggerFactory.Create(builder =>
{
    builder
        .AddConsole()
        .SetMinimumLevel(LogLevel.Debug);
});

License

Copyright © 2005-2026 Alachisoft. All rights reserved.

Resources

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 is compatible.  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.6.2 100 7/3/2026