Merge pull request #3192 from JoshVanL/state-store-ttl-mongodb

Sets TTL support for mongodb state store to enabled
This commit is contained in:
Hannah Hunter 2023-03-06 14:24:46 -06:00 committed by GitHub
commit b2bd42a22d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -112,6 +112,10 @@ The username is `admin` by default.
{{< /tabs >}}
### TTLs and cleanups
This state store supports [Time-To-Live (TTL)]({{< ref state-store-ttl.md >}}) for records stored with Dapr. When storing data using Dapr, you can set the `ttlInSeconds` metadata property to indicate when the data should be considered "expired".
## Related links
- [Basic schema for a Dapr component]({{< ref component-schema >}})
- Read [this guide]({{< ref "howto-get-save-state.md#step-2-save-and-retrieve-a-single-state" >}}) for instructions on configuring state store components

View File

@ -106,7 +106,7 @@
crud: true
transactions: true
etag: true
ttl: false
ttl: true
query: true
- component: MySQL
link: setup-mysql