lowcoupling
lowcoupling

Reputation: 2169

Google appengine memcache scope

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

Answers (1)

tomrozb
tomrozb

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

Related Questions