mirror of https://github.com/dapr/docs.git
go example from yaron
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
This commit is contained in:
parent
4cc7808cc7
commit
026ce895f5
|
|
@ -97,9 +97,9 @@ import (
|
||||||
|
|
||||||
// code
|
// code
|
||||||
|
|
||||||
err = client.SaveState(ctx, STATE_STORE_NAME, "order_1", []byte(strconv.Itoa(orderId)), nil)
|
md := map[string]string{"ttlInSeconds": "120"}
|
||||||
metadata := map[string]string{
|
if err := client.SaveState(ctx, store, "key1", []byte("hello world"), md); err != nil {
|
||||||
"ttlInSeconds": "120"
|
panic(err)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue