mirror of https://github.com/dapr/docs.git
Merge branch 'v1.7' into typo_parameterconsistency
This commit is contained in:
commit
7fd06dec46
|
@ -48,7 +48,7 @@ with DaprClient() as d:
|
|||
# Create a typed message with content type and body
|
||||
resp = d.publish_event(
|
||||
pubsub_name='pubsub',
|
||||
topic='TOPIC_A',
|
||||
topic_name='TOPIC_A',
|
||||
data=json.dumps(req_data),
|
||||
publish_metadata={'rawPayload': 'true'}
|
||||
)
|
||||
|
|
|
@ -46,7 +46,7 @@ DAPR_STORE_NAME = "statestore"
|
|||
|
||||
with DaprClient() as client:
|
||||
client.save_state(DAPR_STORE_NAME, "order_1", str(orderId), metadata=(
|
||||
('ttlInSeconds', '120')
|
||||
('ttlInSeconds', '120'),
|
||||
))
|
||||
|
||||
```
|
||||
|
@ -83,4 +83,4 @@ See [this guide]({{< ref state_api.md >}}) for a reference on the state API.
|
|||
|
||||
- Learn [how to use key value pairs to persist a state]({{< ref howto-get-save-state.md >}})
|
||||
- List of [state store components]({{< ref supported-state-stores >}})
|
||||
- Read the [API reference]({{< ref state_api.md >}})
|
||||
- Read the [API reference]({{< ref state_api.md >}})
|
||||
|
|
Loading…
Reference in New Issue