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
<PackageReference Include="NCache.OSS.StackExchange.Redis.Wrapper" Version="5.3.6.2" />
<PackageVersion Include="NCache.OSS.StackExchange.Redis.Wrapper" Version="5.3.6.2" />
<PackageReference Include="NCache.OSS.StackExchange.Redis.Wrapper" />
paket add NCache.OSS.StackExchange.Redis.Wrapper --version 5.3.6.2
#r "nuget: NCache.OSS.StackExchange.Redis.Wrapper, 5.3.6.2"
#:package NCache.OSS.StackExchange.Redis.Wrapper@5.3.6.2
#addin nuget:?package=NCache.OSS.StackExchange.Redis.Wrapper&version=5.3.6.2
#tool nuget:?package=NCache.OSS.StackExchange.Redis.Wrapper&version=5.3.6.2
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 | Versions 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. |
-
.NETFramework 4.6.2
- Alachisoft.NCache.Opensource.SDK (>= 5.3.6.2)
- Microsoft.Bcl.AsyncInterfaces (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.4)
- System.Buffers (>= 4.6.1)
-
.NETStandard 2.0
- Alachisoft.NCache.Opensource.SDK (>= 5.3.6.2)
- Microsoft.Bcl.AsyncInterfaces (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.4)
- System.Buffers (>= 4.6.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.6.2 | 100 | 7/3/2026 |