Path: redb-route/redb.Route.Redis/RedisHeaders.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/RedisHeaders.cs ---- namespace redb.Route.Redis; /// /// Well-known header constants used by the Redis component. /// public static class RedisHeaders { /// Common prefix for all Redis component headers. public const string Prefix = "redbRedis."; // ── Consumer headers ───────────────────────────────────────────── /// PubSub channel name. public const string Channel = "redbRedis.Channel"; /// Message type: "PubSub", "Stream", or "List". public const string MessageType = "redbRedis.MessageType"; /// Timestamp when the message was received. public const string Timestamp = "redbRedis.Timestamp"; /// Stream name (stream mode). public const string Stream = "redbRedis.Stream"; /// Stream entry ID (stream mode). public const string MessageId = "redbRedis.MessageId"; /// List key name (list mode). public const string Key = "redbRedis.Key"; /// Prefix for stream field values. Example: "redbRedis.Stream.fieldName". public const string StreamFieldPrefix = "redbRedis.Stream."; // ── Producer headers (set after operation) ─────────────────────── /// Number of recipients that received a PubSub publish. public const string PublishRecipients = "redbRedis.Publish.Recipients"; /// Message ID returned after XADD to a stream. public const string StreamMessageId = "redbRedis.Stream.MessageId"; // ── Producer input headers (set by user before send) ───────────── /// Custom Redis command name. public const string Command = "redbRedis.Command"; /// Hash fields dictionary for HSET/HMSET operations. public const string HashFields = "redbRedis.HashFields"; /// Explicit stream field map (Dictionary<string,object>) for XADD. public const string StreamFields = "redbRedis.StreamFields"; /// Field names array for HMGET operations. public const string FieldNames = "redbRedis.FieldNames"; /// Custom command arguments array. public const string CommandArgs = "redbRedis.CommandArgs"; /// Source keys array for PFMERGE operations. public const string SourceKeys = "redbRedis.SourceKeys"; /// Center longitude for GeoRadius operations. public const string CenterLongitude = "redbRedis.CenterLongitude"; /// Center latitude for GeoRadius operations. public const string CenterLatitude = "redbRedis.CenterLatitude"; /// Radius value for GeoRadius operations. public const string Radius = "redbRedis.Radius"; /// Radius unit for GeoRadius operations (m, km, mi, ft). public const string RadiusUnit = "redbRedis.RadiusUnit"; /// Bit offset for SETBIT/GETBIT operations. public const string BitOffset = "redbRedis.Offset"; /// Bit value for SETBIT operations. public const string Bit = "redbRedis.Bit"; /// Returns true if the header key belongs to the Redis component. public static bool IsRedbHeader(string key) => key.StartsWith(Prefix, StringComparison.OrdinalIgnoreCase); }