Choose packages
Start with Respire. It includes the client, every command, locks, pub/sub, streams,
batches, transactions, client-side caching, Cluster, Sentinel, and OpenTelemetry. Add other
packages only when you need what they provide.
Each package uses one name for its NuGet package, assembly, and root namespace: install
Respire.Search, then add using Respire.Search;.
By what you're building
| I'm building… | Install |
|---|---|
| A console app, worker, or library | Respire |
| An ASP.NET Core app | Respire.DependencyInjection (includes Respire) |
| A .NET Aspire app | Respire.Aspire |
IDistributedCache or HybridCache | Respire.Caching or Respire.Caching.Hybrid |
| HTTP output caching, rate limiting, or idempotency keys | Respire.OutputCaching, Respire.RateLimiting, Respire.Idempotency |
| Rate limiters, semaphores, leader election, or Redlock | Respire.Coordination |
| Job queues, reliable queues, or stream workers | Respire.Streaming (plus Respire.Streaming.Dashboard for the UI) |
| JSON documents, search, time series, or Bloom filters | Respire.Json, Respire.Search, Respire.TimeSeries, Respire.Probabilistic |
| AI apps: chat history, semantic cache, vector search | Respire.AI, Respire.VectorData |
| Azure, AWS, or Google Cloud managed Redis with IAM | Respire.Azure, Respire.Aws, Respire.Gcp |
| Health checks | Respire.HealthChecks |
| Tests | Respire.Testing (in-memory) or Respire.Testing.Containers (real Redis) |
| A gradual move from StackExchange.Redis | Respire.StackExchangeCompat |
To start from a working project instead, use the
project templates: dotnet new install Respire.Templates.
All packages
| Package, assembly, and root namespace | Purpose |
|---|---|
Respire | Core RESP client, commands, connections, serialization, and built-in compression abstractions |
Respire.Json | Redis JSON documents |
Respire.Search | Redis Search, indexing, aggregation, and vector queries |
Respire.VectorData | Explicit AOT-friendly VectorData hash/JSON collections, KNN and hybrid search |
Respire.AI | Redis chat history, Agent Framework history providers, semantic response caching, and exact-text embedding caching |
Respire.TimeSeries | Redis time series |
Respire.Probabilistic | Bloom, Cuckoo, Count-Min Sketch, Top-K, and t-digest |
Respire.Aws | AWS IAM credentials for ElastiCache and MemoryDB |
Respire.Azure | Microsoft Entra credentials for Azure Managed Redis |
Respire.Gcp | Google Cloud IAM credentials for Memorystore for Redis Cluster and Valkey |
Respire.Caching | IDistributedCache and IBufferDistributedCache integration |
Respire.Caching.Hybrid | Redis-backed L2 storage for HybridCache |
Respire.OutputCaching | ASP.NET Core output caching store |
Respire.Idempotency | ASP.NET Core idempotency-key response replay |
Respire.RateLimiting | Redis-backed ASP.NET Core rate limiting policies |
Respire.DataProtection | DataProtection key storage and payload encryption |
Respire.FusionCache | FusionCache backplane and distributed locker sharing an existing Respire client |
Respire.SignalR | SignalR scale-out sharing an existing Respire client |
Respire.Streaming | Hosted stream consumers with bounded concurrency and scoped handlers |
Respire.Streaming.Dashboard | Authorized ASP.NET Core dashboard for job queues, stream groups, pending deliveries, and dead-letter actions |
Respire.StackExchangeCompat | Binary-safe value conversion, native command bridge, and a limited IConnectionMultiplexer adapter for incremental StackExchange.Redis migration |
Respire.Coordination | Rate limiters, semaphores, read-write locks, latches, leases, and Redlock |
Respire.DependencyInjection | .NET dependency injection registration |
Respire.HealthChecks | ASP.NET Core health checks using existing client connections |
Respire.Resilience | Polly v8 and Microsoft.Extensions.Resilience with one command retry owner |
Respire.Aspire | .NET Aspire client registration, configuration, health checks, and telemetry |
Respire.Aspire.DistributedCaching, Respire.Aspire.HybridCaching, Respire.Aspire.OutputCaching | IDistributedCache, HybridCache, and output caching on an Aspire-registered client |
Respire.Compression.Lz4 | Optional LZ4 value codec |
Respire.Serialization.MessagePack | MessagePack serializer and DI registration |
Respire.Serialization.Protobuf | protobuf-net serializer and DI registration |
Respire.Serialization.MemoryPack | MemoryPack serializer and DI registration |
Respire.Compression.Zstd | Optional Zstandard value codec |
Respire.Testing | In-memory RESP test server |
Respire.Testing.StackExchangeCompat | In-memory fixture for the supported StackExchange.Redis compatibility subset |
Respire.Testing.Containers | Redis and Valkey container fixtures |
Respire.Analyzersships inside the coreRespirepackage, not as its own package.- Subnamespaces such as
Respire.SerializationandRespire.Compressionbelong to the core package.Respire.Compressionholds the shared codec options; importRespire.Compression.Lz4orRespire.Compression.Zstdfor a codec. - The Aspire packages put their registration methods in
Microsoft.Extensions.Hosting. - Extension properties such as
redis.Jsonandredis.Coordinationneed C# 14 (thenet10.0default). On earlier language versions, construct the wrapper:new RespireJsonClient(redis)ornew RespireCoordination(redis).
Upgrade packages together
Keep every Respire package on the same version. Respire.Aspire, Respire.Caching, Respire.Compression.Lz4, Respire.Compression.Zstd, Respire.Coordination, Respire.DataProtection, Respire.DependencyInjection, Respire.Json, Respire.Probabilistic, Respire.Search, Respire.StackExchangeCompat, Respire.Streaming, Respire.Streaming.Dashboard, Respire.Testing, and Respire.TimeSeries require the exact Respire version they were built against, including any prerelease suffix. Mixing versions can fail at runtime.
The three Respire.Serialization.* adapters also pin their core dependency exactly so
serializer and client packages are upgraded together, even though they use public APIs.
Server modules
Redis Open Source 8 includes JSON, Search, time series, and probabilistic data types; their client APIs are optional packages. Earlier Redis needs the matching modules or Redis Stack, and other RESP servers may support only some commands. Installing a package does not enable a server feature.
The name Respire.Extensions.<ModuleName> is reserved for custom, separately installed Redis modules; no current package uses it. For custom commands, use the raw command API or command generator.
For older Respire.Extensions.* references, see the package migration guide.