Make Registry.get(tld) hit memcache explicitly.

TESTED=The test fails if you change line 134 in Ofy to not use memcache
    and use the unchanged original Registry.get() code. This is the
    expected behavior.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=154226534
This commit is contained in:
cgoldfeder 2017-04-25 15:02:42 -07:00 committed by Ben McIlwain
parent 9e61f1d6ef
commit 4eba2ea07a
2 changed files with 17 additions and 1 deletions

View file

@ -250,7 +250,7 @@ public class Registry extends ImmutableObject implements Buildable {
@Override
public Registry run() {
return ofy()
.load()
.loadWithMemcache()
.key(Key.create(getCrossTldKey(), Registry.class, tld))
.now();
}}));