Global Server State #2381
goldenratio
started this conversation in
General
Replies: 1 comment 2 replies
-
You can configure the Spin key-value store to run in-memory: # runtime_config.toml
[key_value_store.default]
type = "spin"
# By omitting the path below, the store will exist only in memory
# path = "path/to/store.d" $ spin up --runtime-config-file runtime_config.toml
...
Using in-memory default key-value store; data will not be saved! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
is it possible to have a shared global app state (thread safe), so this data is accessible in components (read/write). Something similar to actix-web's app_data.
Beta Was this translation helpful? Give feedback.
All reactions