net10.0
Redis-backed key/value repository adapter for Koan: simple CRUD, paging guardrails, and options binding.
Published
May 16, 2026
5mo ago
Total Downloads
4.0K
4,009
Install
dotnet add package Sylin.Koan.Data.Connector.Redis --version 0.8.0
| Product | Versions |
|---|---|
| .NET |
README
Sylin.Koan.Data.Connector.Redis
Redis provider for Koan data - key-value storage with options binding, health checks, and simple scanning.
- Target framework: net9.0
- License: Apache-2.0
Capabilities
- Connection multiplexer management via options
- Basic scan/query over keys for simple filters
- Health checks and minimal metrics hooks
Install
dotnet add package Sylin.Koan.Data.Connector.Redis
Minimal setup
- Configure
ConnectionStrings:RedisorKoan:Data:Redis:ConnectionString. - Avoid embedding credentials; use environment or secret stores.
Usage - safe snippets
- Prefer first-class statics on entities; fall back to repository only when needed.
// Save and get entity
await Session.Save(new Cart { Id = id, Items = [] }, ct);
var cart = await Session.Get(id, ct);
// Stream keys if the set is large
await foreach (var c in Session.AllStream(batchSize: 1000, ct))
{
// process
}
See TECHNICAL.md for options and operational considerations.
References
- Redis adapter notes:
~/20-redis-adapter.md - Data access reference:
~/reference/data-access.md
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.