java - Caching with Google App Engine -


when using app engine datastore storing entities, applied technique caching.

i mean, without caching do, this:

datastoreservice _ds = datastoreservicefactory.getdatastoreservice(); public void put(string key, string value){     try {        entity e = new entity(createkey(key));         e.setproperty("key", key);        e.setproperty("value", value);         _ds.put(e);      } catch (exception e) {        // handle exception     } } 

so caching kicks in? how caching play during methods.

update:

  • simply put question when caching. basic implementation not caching @ all, plain put , datastore.
  • should caching implemented on lowest level api in code or in high level api, in case, lowest level api have this, put , datastore.

there 2 kinds of caching think in app engine: memcache ds entities , edge caching static assets. video google covers both nicely specific code examples:

google i/o 2012 - optimizing google app engine app

for edge caching can check out post brandon wirtz, documentation bit thin: enabling edge caching


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -