-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to keep cache isolated between different users ? #112
Comments
|
Hey @fasidOnGit, I think this should be left to user land since we cant make any assumptions on when and how to clear the cache. |
That only works during the app bootstrap. switching reactively between cache key looks like not possible. |
Correct, it only works once. For further separation you'd likely create your own storage strategy which switches between multiple namespaces |
Alright, thanks for the explanation. |
Let us consider the following method
If I switch users in the same machine in the same window (like logout and login). I see that the cache from the previous user is used for the currently logged-in user. which yields me totally wrong set of values.
I also tried to set the
globalCacheKey
to be a unique id to isolate the cache between multiple users. But it doesn't work.Thanks in advance.
The text was updated successfully, but these errors were encountered: