Skip to content

Are values persisted with .fileStorage strategy also cached in memory for efficiency? #3591

Answered by mbrandonw
armanarutiunov asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @armanarutiunov, yes that is how it behaves, and how @Shared behaves in general. It always keeps state in memory, and it synchronizes with the external system by writing to it when the state is changed, and subscribing to changes in the external system in order to play back to the in-memory state. This means if you were to edit the file directly on the file system, the @Shared state would also update.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@armanarutiunov
Comment options

Answer selected by armanarutiunov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants