Respire.Testing.StackExchangeCompat 0.11.0

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

Respire.Testing.StackExchangeCompat

Test the documented StackExchange.Redis compatibility subset using real Respire clients over in-memory pipes, without sockets or Redis containers.

using Respire.Testing.StackExchangeCompat;
using StackExchange.Redis;

await using var fixture = new RespireFakeConnection();
IConnectionMultiplexer connection = fixture.Connection;
IDatabase database = connection.GetDatabase();
await database.HashSetAsync("greeting", "text", "hello");
var value = await database.HashGetAsync("greeting", "text");

This package shares the adapter's experimental RSP0006 opt-in. Add RSP0006 to your project's NoWarn when choosing to use it.

The default constructor owns an isolated server. Pass a RespireFakeServer to share state or configure a fake clock and faults; the caller retains ownership of that server. Dispose fixtures before a caller-owned server. Fixture disposal joins pending operations and disposes the multiplexer/clients before an owned server. Do not leave fault gates paused during disposal.

Only database zero is supported. Other database selections and unimplemented adapter members throw NotSupportedException. Commands supported by the adapter but not by the fake (such as arbitrary Lua) throw RespireServerException. This is not general StackExchange.Redis parity or a replacement for real-server integration tests.

See the in-memory testing guide for the supported intersection and direct composition without this helper.

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
0.11.0 47 10/21/2026