The in-memory state store component maintains state in the Dapr sidecar’s memory. This is primarily meant for development purposes. State is not replicated across multiple sidecars and is lost when the Dapr sidecar is restarted.
To setup in-memory state store, create a component of type
state.in-memory. See this guide on how to create and apply a state store configuration.
Note: While in-memory does not require any specific metadata for the component to work,
spec.metadatais a required field.
- Basic schema for a Dapr component
- Learn how to create and configure state store components
- Read more about the state management building block
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.