static final LocalMemoryCacheConfig localMemoryCacheConfig = new LocalMemoryCacheConfig.Builder() .withCacheFilteredIndexes(true) .withCacheFilteredSizes(true) .withIndexCapacity(50) .withIndexLifeTime(600) .withItemCapacity(1000) .withItemLifeTime(600) .withLineSize(50) .withRemoveStrategy(LocalMemoryCacheConfig.RemoveStrategy.LRU) .withSizeCapacity(20) .withSizeLifeTime(600) .Build(); Cache localMemory = CacheFactory.getCache(localMemoryCacheConfig); Cache memCache = CacheFactory.getDefaultMemCache(); // -- Override getItemIds() which throws UnsupportedException by default private class MyGAEContainer extends GAEContainer { static final long serialVersionUID = 1L; public MyGAEContainer(String kind) { // Create a container with two caches, optimistic locking and manual commits: super(kind, false, true, localMemory, memCache); //super(kind); } @Override public Collection getItemIds() { ArrayList itemIds = new ArrayList(); for( int i=0; i