Adds Default TTL Option for Redis State Store#1059
Merged
Conversation
Member
Author
|
With this PR the component YAML will include a apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: <NAME>
namespace: <NAMESPACE>
spec:
type: state.redis
version: v1
metadata:
- name: redisHost
value: <HOST>
- name: redisPassword
value: <PASSWORD>
- name: enableTLS
value: <bool> # Optional. Allowed: true, false.
- name: failover
value: <bool> # Optional. Allowed: true, false.
- name: sentinelMasterName
value: <string> # Optional
- name: maxRetries
value: # Optional
- name: maxRetryBackoff
value: # Optional
- name: ttlInSeconds
value: <int> # Optional |
Codecov Report
@@ Coverage Diff @@
## master #1059 +/- ##
==========================================
- Coverage 34.53% 34.53% -0.01%
==========================================
Files 132 132
Lines 10870 10882 +12
==========================================
+ Hits 3754 3758 +4
- Misses 6736 6744 +8
Partials 380 380
Continue to review full report at Codecov.
|
artursouza
approved these changes
Aug 10, 2021
berndverst
added a commit
to berndverst/docs
that referenced
this pull request
Aug 10, 2021
This is to document the new global TTL option for Redis Implemented in dapr/components-contrib#1059 for issue dapr/components-contrib#1060
6 tasks
amimimor
pushed a commit
to amimimor/components-contrib
that referenced
this pull request
Dec 9, 2021
* Adds Default TTL Option for Redis State Store * Add additional tests * Parse correct property key Co-authored-by: Bernd Verst <[email protected]>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Redis unlike other databases that support TTL does not have an option to set a default TTL at the database or table / collection level.
This addition to the Redis State Store component allows defining a default TTL to be used whenever an individual State Store request does not specify a TTL.
Fixes #1060