Package com.googlecode.objectify.cache

Examples of com.googlecode.objectify.cache.CachingAsyncDatastoreService


   */
  @BeforeMethod
  public void setUpExtra()
  {
    EntityMemcache mc = new EntityMemcache(null);
    cads = new CachingAsyncDatastoreService(DatastoreServiceFactory.getAsyncDatastoreService(), mc);
    nods = new CachingAsyncDatastoreService(new MockAsyncDatastoreService(), mc);
   
    key = KeyFactory.createKey("thing", 1);
    keyInSet = Collections.singleton(key);
    entity = new Entity(key);
    entity.setProperty("foo", "bar");
View Full Code Here


  public AsyncDatastoreService createAsyncDatastoreService(DatastoreServiceConfig cfg, boolean globalCache)
  {
    AsyncDatastoreService ads = this.createRawAsyncDatastoreService(cfg);

    if (globalCache && this.registrar.isCacheEnabled())
      return new CachingAsyncDatastoreService(ads, this.entityMemcache);
    else
      return ads;
  }
View Full Code Here

TOP

Related Classes of com.googlecode.objectify.cache.CachingAsyncDatastoreService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.