Reputation: 2169
I am introducing memcache in a Google app engine app and I need to know if any memcache instance is local to the current user (like a session) or not.
Upvotes: 0
Views: 58
Reputation: 26281
Memcache instance is global and not tight to the User
instance.
You add values to memcache by key, so you can implement User
bound memcache on your own, by using user key + some additional info as key to memcache value.
memcacheService.put(userKey + "userBalance", userBalance);
This will cache userBalance
per user.
Upvotes: 1