I am planning to use Objectify to talk to Cloud Datastore from GAE Flex. The app is going to be running quite a few background threads talking to Datastore regarding which I have a couple of questions.
I am not planning to use any memcache setup and since these threads are going to be running for a long time, I dont want the Session cache to fill up either. I could not find a way to set
ofy()to never cache locally too and the only option seems to be to run aclear()operation periodically. Is there a better way to avoid these caches?As I see it, we need to wrap any such invocations of
ofy()in arun()block to perform the cleanup. I wanted to confirm that this was the only way to use it outside requests scope and there was no in-built support for these longer contexts.
Thanks