In an effort to reduce the number of datastore PUTs I am consuming I wish to use the memcache much more frequently. The idea being to store entities in the memcache for n minutes before writing all entities to the datastore and clearing the cache.
I have two questions:
Is there a way to batch PUT every entity in the cache? I believe makePersistentAll() is not really batch saving but rather saving each individually is it not?
Secondly is there a "callback" function you can place on entities as you place them in the memcache? I.e. If I add an entity to the cache (with a 2 minute expiration delta) can I tell AppEngine to save the entity to the datastore when it is evicted?
Thanks!