From 43643606e98e7e9b505008951cda635bb4e3b91d Mon Sep 17 00:00:00 2001 From: Bernd Verst Date: Mon, 9 Aug 2021 20:20:40 -0700 Subject: [PATCH 1/2] Add global TTL option for Redis This is to document the new global TTL option for Redis Implemented in https://github.com/dapr/components-contrib/pull/1059 for issue https://github.com/dapr/components-contrib/issues/1060 --- .../components-reference/supported-state-stores/setup-redis.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daprdocs/content/en/reference/components-reference/supported-state-stores/setup-redis.md b/daprdocs/content/en/reference/components-reference/supported-state-stores/setup-redis.md index ecc4804a9..dd470d08b 100644 --- a/daprdocs/content/en/reference/components-reference/supported-state-stores/setup-redis.md +++ b/daprdocs/content/en/reference/components-reference/supported-state-stores/setup-redis.md @@ -35,6 +35,8 @@ spec: value: # Optional - name: maxRetryBackoff value: # Optional + - name: ttlInSeconds + value: # Optional ``` **TLS:** If the Redis instance supports TLS with public certificates it can be configured to enable or disable TLS `true` or `false`. @@ -81,6 +83,7 @@ If you wish to use Redis as an actor store, append the following to the yaml. | idleCheckFrequency | N | Frequency of idle checks made by idle connections reaper. Default is `"1m"`. `"-1"` disables idle connections reaper. | `"-1"` | idleTimeout | N | Amount of time after which the client closes idle connections. Should be less than server's timeout. Default is `"5m"`. `"-1"` disables idle timeout check. | `"10m"` | actorStateStore | N | Consider this state store for actors. Defaults to `"false"` | `"true"`, `"false"` +| ttlInSeconds | N | Allows specifying a default Time-to-live (TTL) in seconds that will be applied to every state store request unless TTL is explictly defined via the request metadata. This is especially useful because Redis does not offer a global default TTL feature. [Read more]({{< ref "state-store-ttl.md" >}}) about State Time-to-Live (TTL). | `600` ## Setup Redis From 7cd99bb1c34d1aada837e1f0c146e431e49e73ca Mon Sep 17 00:00:00 2001 From: Bernd Verst Date: Wed, 11 Aug 2021 13:46:07 -0700 Subject: [PATCH 2/2] Rewording global Redis TTL --- .../components-reference/supported-state-stores/setup-redis.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daprdocs/content/en/reference/components-reference/supported-state-stores/setup-redis.md b/daprdocs/content/en/reference/components-reference/supported-state-stores/setup-redis.md index dd470d08b..36c01fb57 100644 --- a/daprdocs/content/en/reference/components-reference/supported-state-stores/setup-redis.md +++ b/daprdocs/content/en/reference/components-reference/supported-state-stores/setup-redis.md @@ -83,7 +83,7 @@ If you wish to use Redis as an actor store, append the following to the yaml. | idleCheckFrequency | N | Frequency of idle checks made by idle connections reaper. Default is `"1m"`. `"-1"` disables idle connections reaper. | `"-1"` | idleTimeout | N | Amount of time after which the client closes idle connections. Should be less than server's timeout. Default is `"5m"`. `"-1"` disables idle timeout check. | `"10m"` | actorStateStore | N | Consider this state store for actors. Defaults to `"false"` | `"true"`, `"false"` -| ttlInSeconds | N | Allows specifying a default Time-to-live (TTL) in seconds that will be applied to every state store request unless TTL is explictly defined via the request metadata. This is especially useful because Redis does not offer a global default TTL feature. [Read more]({{< ref "state-store-ttl.md" >}}) about State Time-to-Live (TTL). | `600` +| ttlInSeconds | N | Allows specifying a default Time-to-live (TTL) in seconds that will be applied to every state store request unless TTL is explicitly defined via the [request metadata]({{< ref "state-store-ttl.md" >}}). | `600` ## Setup Redis