From 58a99d27b8d6c7b4067f6b5f62a5fa4c2789a7fc Mon Sep 17 00:00:00 2001 From: Elena Kolevska Date: Wed, 19 Mar 2025 15:34:26 +0000 Subject: [PATCH 1/2] Adds a new component config option for Redis PubSub Signed-off-by: Elena Kolevska --- .../components-reference/supported-pubsub/setup-redis-pubsub.md | 1 + 1 file changed, 1 insertion(+) diff --git a/daprdocs/content/en/reference/components-reference/supported-pubsub/setup-redis-pubsub.md b/daprdocs/content/en/reference/components-reference/supported-pubsub/setup-redis-pubsub.md index 387920e7a50..1f4dd121ee3 100644 --- a/daprdocs/content/en/reference/components-reference/supported-pubsub/setup-redis-pubsub.md +++ b/daprdocs/content/en/reference/components-reference/supported-pubsub/setup-redis-pubsub.md @@ -69,6 +69,7 @@ The above example uses secrets as plain strings. It is recommended to use a secr | failover | N | Property to enabled failover configuration. Needs sentinalMasterName to be set. Defaults to `"false"` | `"true"`, `"false"` | sentinelMasterName | N | The sentinel master name. See [Redis Sentinel Documentation](https://redis.io/docs/manual/sentinel/) | `""`, `"127.0.0.1:6379"` | maxLenApprox | N | Maximum number of items inside a stream.The old entries are automatically evicted when the specified length is reached, so that the stream is left at a constant size. Defaults to unlimited. | `"10000"` +| minIDApprox | N | Minimum ID threshold for the stream. Entries with IDs smaller than the specified threshold are evicted, keeping the stream trimmed to only contain entries with IDs greater than or equal to this value. This can be used for time-based eviction since Redis stream IDs are in the format {timestamp-sequence}, where timestamp is in milliseconds since epoch. Defaults to none. | `"1742397526022-0"` ## Create a Redis instance From 954c61367a571c16f88fc65ee9c9a134587a3789 Mon Sep 17 00:00:00 2001 From: Elena Kolevska Date: Wed, 30 Apr 2025 01:21:08 +0100 Subject: [PATCH 2/2] Updates for dynamic ttl Signed-off-by: Elena Kolevska --- .../components-reference/supported-pubsub/setup-redis-pubsub.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daprdocs/content/en/reference/components-reference/supported-pubsub/setup-redis-pubsub.md b/daprdocs/content/en/reference/components-reference/supported-pubsub/setup-redis-pubsub.md index 1f4dd121ee3..7ea8295630b 100644 --- a/daprdocs/content/en/reference/components-reference/supported-pubsub/setup-redis-pubsub.md +++ b/daprdocs/content/en/reference/components-reference/supported-pubsub/setup-redis-pubsub.md @@ -69,7 +69,7 @@ The above example uses secrets as plain strings. It is recommended to use a secr | failover | N | Property to enabled failover configuration. Needs sentinalMasterName to be set. Defaults to `"false"` | `"true"`, `"false"` | sentinelMasterName | N | The sentinel master name. See [Redis Sentinel Documentation](https://redis.io/docs/manual/sentinel/) | `""`, `"127.0.0.1:6379"` | maxLenApprox | N | Maximum number of items inside a stream.The old entries are automatically evicted when the specified length is reached, so that the stream is left at a constant size. Defaults to unlimited. | `"10000"` -| minIDApprox | N | Minimum ID threshold for the stream. Entries with IDs smaller than the specified threshold are evicted, keeping the stream trimmed to only contain entries with IDs greater than or equal to this value. This can be used for time-based eviction since Redis stream IDs are in the format {timestamp-sequence}, where timestamp is in milliseconds since epoch. Defaults to none. | `"1742397526022-0"` +| streamTTL | N | TTL duration for stream entries. Entries older than this duration will be evicted. This is an approximate value, as it's implemented using Redis stream's `MINID` trimming with the '~' modifier. The actual retention may include slightly more entries than strictly defined by the TTL, as Redis optimizes the trimming operation for efficiency by potentially keeping some additional entries. | `"30d"` ## Create a Redis instance