Adds reference to TTL in mongodb state reference

Signed-off-by: joshvanl <me@joshvanl.dev>
This commit is contained in:
joshvanl 2023-02-28 17:05:42 +00:00
parent f7cddfb559
commit 53693c73bd
1 changed files with 4 additions and 0 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