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
<PackageReference Include="Respire.Testing.StackExchangeCompat" Version="0.11.0" />
<PackageVersion Include="Respire.Testing.StackExchangeCompat" Version="0.11.0" />
<PackageReference Include="Respire.Testing.StackExchangeCompat" />
paket add Respire.Testing.StackExchangeCompat --version 0.11.0
#r "nuget: Respire.Testing.StackExchangeCompat, 0.11.0"
#:package Respire.Testing.StackExchangeCompat@0.11.0
#addin nuget:?package=Respire.Testing.StackExchangeCompat&version=0.11.0
#tool nuget:?package=Respire.Testing.StackExchangeCompat&version=0.11.0
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 | Versions 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. |
-
net10.0
- Respire.StackExchangeCompat (>= 0.11.0)
- Respire.Testing (>= 0.11.0)
-
net8.0
- Respire.StackExchangeCompat (>= 0.11.0)
- Respire.Testing (>= 0.11.0)
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 |