mirror of
https://github.com/google/nomulus
synced 2026-08-29 04:07:02 +00:00
Remove all vestiges of memcache
Memcache is already off but now it's not in the code anymore. This includes removing domain creation failfast, since that is actually slower now than just running the flow - all you gain is a non-transactional read over a transactional read, but the cost is that you always pay that read, which is going to drive up latency. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=158183506
This commit is contained in:
@@ -21,7 +21,6 @@ import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
import static org.json.XML.toJSONObject;
|
||||
|
||||
import com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig;
|
||||
import com.google.appengine.tools.development.testing.LocalMemcacheServiceTestConfig;
|
||||
import com.google.appengine.tools.development.testing.LocalModulesServiceTestConfig;
|
||||
import com.google.appengine.tools.development.testing.LocalServiceTestConfig;
|
||||
import com.google.appengine.tools.development.testing.LocalServiceTestHelper;
|
||||
@@ -96,7 +95,6 @@ public final class AppEngineRule extends ExternalResource {
|
||||
|
||||
private boolean withDatastore;
|
||||
private boolean withLocalModules;
|
||||
private boolean withMemcache;
|
||||
private boolean withTaskQueue;
|
||||
private boolean withUserService;
|
||||
private boolean withUrlFetch;
|
||||
@@ -122,12 +120,6 @@ public final class AppEngineRule extends ExternalResource {
|
||||
return this;
|
||||
}
|
||||
|
||||
/** Turn on the use of local modules. */
|
||||
public Builder withMemcache() {
|
||||
rule.withMemcache = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/** Turn on the task queue service. */
|
||||
public Builder withTaskQueue() {
|
||||
@@ -281,9 +273,6 @@ public final class AppEngineRule extends ExternalResource {
|
||||
.addBasicScalingModuleVersion("tools", "1", 1)
|
||||
.addBasicScalingModuleVersion("backend", "1", 1));
|
||||
}
|
||||
if (withMemcache) {
|
||||
configs.add(new LocalMemcacheServiceTestConfig());
|
||||
}
|
||||
if (withTaskQueue) {
|
||||
File queueFile = temporaryFolder.newFile("queue.xml");
|
||||
Files.asCharSink(queueFile, UTF_8).write(taskQueueXml);
|
||||
|
||||
Reference in New Issue
Block a user