The documentation you are viewing is for Dapr v1.9 which is an older version of Dapr. For up-to-date documentation, see the latest version.
The In Memory state store component is useful for development purposes and works inside of a single machine boundary.
WarningThis component shouldn’t be used for production. It is developer only and will never be stable. If you come across a scenario and want to use it in production, you can submit an issue and discuss it with the community.
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.
apiVersion: dapr.io/v1alpha1 kind: Component metadata: name: <NAME> spec: type: state.in-memory version: v1 metadata: 
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.