mirror of https://github.com/dapr/docs.git
				
				
				
			[state store ttl] Add context to persisting state (#3546)
* add context from bernd to ttl Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com> * fix typo Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com> * clean up wording Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com> * update/clarify per bernd Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com> * Update daprdocs/content/en/developing-applications/building-blocks/state-management/state-store-ttl.md Co-authored-by: Mark Fussell <markfussell@gmail.com> Signed-off-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com> * Update daprdocs/content/en/developing-applications/building-blocks/state-management/state-store-ttl.md Co-authored-by: Mark Fussell <markfussell@gmail.com> Signed-off-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com> * Update daprdocs/content/en/developing-applications/building-blocks/state-management/state-store-ttl.md Co-authored-by: Mark Fussell <markfussell@gmail.com> Signed-off-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com> * Update daprdocs/content/en/developing-applications/building-blocks/state-management/state-store-ttl.md Co-authored-by: Mark Fussell <markfussell@gmail.com> Signed-off-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com> --------- Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com> Signed-off-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com> Co-authored-by: Mark Fussell <markfussell@gmail.com>
This commit is contained in:
		
							parent
							
								
									4d17ab04c2
								
							
						
					
					
						commit
						d1c5df533d
					
				|  | @ -16,9 +16,15 @@ When state TTL has native support in the state store component, Dapr forwards th | ||||||
| 
 | 
 | ||||||
| When a TTL is not specified, the default behavior of the state store is retained. | When a TTL is not specified, the default behavior of the state store is retained. | ||||||
| 
 | 
 | ||||||
| ## Persisting state (ignoring an existing TTL) | ## Explicit persistence bypassing globally defined TTL | ||||||
| 
 | 
 | ||||||
| To explicitly persist a state (ignoring any TTLs set for the key), specify a `ttlInSeconds` value of `-1`. | Persisting state applies to all state stores that let you specify a default TTL used for all data, either: | ||||||
|  | - Setting a global TTL value via a Dapr component, or  | ||||||
|  | - When creating the state store outside of Dapr and setting a global TTL value.  | ||||||
|  | 
 | ||||||
|  | When no specific TTL is specified, the data expires after that global TTL period of time. This is not facilitated by Dapr. | ||||||
|  | 
 | ||||||
|  | In addition, all state stores also support the option to _explicitly_ persist data. This means you can ignore the default database policy (which may have been set outside of Dapr or via a Dapr Component) to indefinitely retain a given database record. You can do this by setting `ttlInSeconds` to the value of `-1`. This value indicates to ignore any TTL value set. | ||||||
| 
 | 
 | ||||||
| ## Supported components | ## Supported components | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue