First, I retrieve an object from memcache:
player = memcache.get('%s' % id)
Then I update one of its properties:
player.score = newScore
I’ve done a bit of testing and it seems as it these two lines change the property player.score in my datastore. Now, I don’t know much about memcache, but I do not expect this behavior.
Thanks.
You want to save the changes after updating your player object, put it again to the datastore: