mirror of https://github.com/dapr/docs.git
parent
e9680c469b
commit
1087cb12d7
|
@ -42,7 +42,7 @@ The following example shows how to save two key/value pairs in a single call usi
|
||||||
{{% codetab %}}
|
{{% codetab %}}
|
||||||
Begin by ensuring a Dapr sidecar is running:
|
Begin by ensuring a Dapr sidecar is running:
|
||||||
```bash
|
```bash
|
||||||
dapr --app-id myapp --port 3500 run
|
dapr run --app-id myapp --dapr-http-port 3500 run
|
||||||
```
|
```
|
||||||
{{% alert title="Note" color="info" %}}
|
{{% alert title="Note" color="info" %}}
|
||||||
It is important to set an app-id, as the state keys are prefixed with this value. If you don't set it one is generated for you at runtime, and the next time you run the command a new one will be generated and you will no longer be able to access previously saved state.
|
It is important to set an app-id, as the state keys are prefixed with this value. If you don't set it one is generated for you at runtime, and the next time you run the command a new one will be generated and you will no longer be able to access previously saved state.
|
||||||
|
|
Loading…
Reference in New Issue