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
This commit is contained in:
Bernd Verst 2021-08-09 20:20:40 -07:00 committed by GitHub
parent 3cb09dc004
commit 43643606e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,8 @@ spec:
value: # Optional
- name: maxRetryBackoff
value: # Optional
- name: ttlInSeconds
value: <int> # 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