Path: redb-route/redb.Route.Redis/RedisComponent.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Redis/RedisComponent.cs
----
using redb.Route.Abstractions;
using redb.Route.Core;
namespace redb.Route.Redis;
///
/// Redis transport component for redb.Route.
/// Scheme: redis.
///
/// URI format (colon-path): redis:SET:mykey?ttl=300&connectionString=localhost:6379
/// URI format (standard): redis://SET/mykey?ttl=300
///
///
/// The first path segment is the .
/// The remaining segments form the resource key / channel / stream name.
///
///
public sealed partial class RedisComponent : ComponentBase
{
///
public override string Scheme => "redis";
///
public override IEndpoint CreateEndpoint(EndpointUri uri)
{
ArgumentNullException.ThrowIfNull(uri);
var options = new RedisEndpointOptions();
options.BindFromUri(uri.RawParameters);
options.Validate();
return new RedisEndpoint(uri, this, options);
}
}