![]() |
VOOZH | about |
dotnet add package Rig.TUnit.Databases.NoSql.Redis --version 0.1.0-beta.2
NuGet\Install-Package Rig.TUnit.Databases.NoSql.Redis -Version 0.1.0-beta.2
<PackageReference Include="Rig.TUnit.Databases.NoSql.Redis" Version="0.1.0-beta.2" />
<PackageVersion Include="Rig.TUnit.Databases.NoSql.Redis" Version="0.1.0-beta.2" />Directory.Packages.props
<PackageReference Include="Rig.TUnit.Databases.NoSql.Redis" />Project file
paket add Rig.TUnit.Databases.NoSql.Redis --version 0.1.0-beta.2
#r "nuget: Rig.TUnit.Databases.NoSql.Redis, 0.1.0-beta.2"
#:package Rig.TUnit.Databases.NoSql.Redis@0.1.0-beta.2
#addin nuget:?package=Rig.TUnit.Databases.NoSql.Redis&version=0.1.0-beta.2&prereleaseInstall as a Cake Addin
#tool nuget:?package=Rig.TUnit.Databases.NoSql.Redis&version=0.1.0-beta.2&prereleaseInstall as a Cake Tool
Redis-as-KV-store fixture, sibling to
Rig.TUnit.Caching.Redis. Same container, different semantic contract.
Redis wears two hats in real systems: a best-effort cache (with eviction,
TTLs, dogpile prevention) and a durable key-value store (primary of
record for session tokens, counters, distributed locks). The Rig.TUnit
split keeps those roles in separate packages so consumers declare
intent — UseRedisCache(…) vs UseRedisKv(…). Shares the underlying
RedisFixture with Rig.TUnit.Caching.Redis to avoid a duplicate
container per test process.
Ships KeyScanHelper — a SCAN-based enumeration wrapper with sensible
batch size + match-pattern support, because KEYS * is forbidden in
anything touching production-shape data.
Rig.TUnit.Caching.Redis.StackExchange.Redis (transitive)using Rig.TUnit.Caching.Redis.Fixtures;
using Rig.TUnit.Databases.NoSql.Redis.Helpers;
using StackExchange.Redis;
await using var fx = new RedisFixture();
await fx.InitializeAsync();
var db = ConnectionMultiplexer.Connect(fx.ConnectionString).GetDatabase();
await db.StringSetAsync("session:abc", "user-42");
| Property | Type | Default | Description |
|---|---|---|---|
Image |
string |
"redis:7-alpine" |
Image |
StartupTimeoutSeconds |
int |
30 |
Redis boots in ~1 s |
Password |
string? |
null |
Off in dev mode |
AppendOnly |
bool |
false |
AOF persistence; disabled for test speed |
Rig.TUnit.Databases.NoSql.Redis.Builder.RedisKvRigBuilderRig.TUnit.Databases.NoSql.Redis.Helpers.KeyScanHelperRig.TUnit.Caching.Redis.Fixtures.RedisFixturePer-test key prefix: session:{IsolationKey:short}:*. KeyScanHelper
teardown issues SCAN + DEL against the prefix. Cheaper than running a
container per test.
{IsolationKey} prefix.
The KeyScanHelper only scrubs inside the prefix; keys outside linger.ERR SCAN iteration terminated by timeout — increase count
batch size (default 100) or reduce the number of keys per test.See .
MULTI/EXEC is atomic but a
slow script blocks everyone else. Avoid Lua scripts in tests unless
testing them.CONFIG SET notify-keyspace-events "KEA") are
off by default; enable explicitly if testing pub/sub on key expiry.See ;
baseline in benchmarks/baseline-005.json.
MIT. See .
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Rig.TUnit.Databases.NoSql.Redis:
| Package | Downloads |
|---|---|
|
Rig.TUnit.All
Meta-package containing every Rig.TUnit.* package. DISCOURAGED — prefer per-feature or per-stack meta-packages (Rig.TUnit, Rig.TUnit.Microservices). |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-beta.2 | 62 | 4/27/2026 |
| 0.0.0-alpha.0.14 | 59 | 4/26/2026 |