You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get some clarity on how I can use Akavache for multiple users on the same phone for the same app.
I am currently using BlobCache.LocalMachine, and I am getting and setting cached data using GetOrFetchObject( key ) and InsertObject( key ). The data consists of text and images. What I am noticing is that the key here is just a generic identifier that I am giving to the data, hence regardless of who logs into my app, the data is getting refreshed based on the same key, not proprietary to that user.
BlobCache.UserAccount is just a different location of the db, but doesn't take into account which user is actually using the app.
Is there a way to globally assign a userID or something to the data being saved? If not, what should the approach be to save multiple user's data using akavache on the same device?
The text was updated successfully, but these errors were encountered:
I was overthinking this, when I 'log out' of my app, since I am doing a vacuum, the data for that user is wiped out. When I log in again with the new credentials, a new cache is created so the other user's data is never shown.
I am trying to get some clarity on how I can use Akavache for multiple users on the same phone for the same app.
I am currently using BlobCache.LocalMachine, and I am getting and setting cached data using GetOrFetchObject( key ) and InsertObject( key ). The data consists of text and images. What I am noticing is that the key here is just a generic identifier that I am giving to the data, hence regardless of who logs into my app, the data is getting refreshed based on the same key, not proprietary to that user.
BlobCache.UserAccount is just a different location of the db, but doesn't take into account which user is actually using the app.
Is there a way to globally assign a userID or something to the data being saved? If not, what should the approach be to save multiple user's data using akavache on the same device?
The text was updated successfully, but these errors were encountered: