mirror of https://github.com/dapr/docs.git
Fix TTL example for Python (#2394)
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
This commit is contained in:
parent
327830a35f
commit
2d4fb5dfa5
|
@ -45,9 +45,9 @@ from dapr.clients import DaprClient
|
|||
DAPR_STORE_NAME = "statestore"
|
||||
|
||||
with DaprClient() as client:
|
||||
client.save_state(DAPR_STORE_NAME, "order_1", str(orderId), metadata=(
|
||||
('ttlInSeconds', '120'),
|
||||
))
|
||||
client.save_state(DAPR_STORE_NAME, "order_1", str(orderId), state_metadata={
|
||||
'ttlInSeconds': '120'
|
||||
})
|
||||
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue