Make Registrar.loadByClientId explicitly use memcache

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=154712979
This commit is contained in:
cgoldfeder 2017-05-01 06:56:59 -07:00 committed by Ben McIlwain
parent f9df4cf3f1
commit 386d2bc6be
2 changed files with 13 additions and 2 deletions

View file

@ -863,7 +863,7 @@ public class Registrar extends ImmutableObject implements Buildable, Jsonifiable
return ofy().doTransactionless(new Work<Registrar>() {
@Override
public Registrar run() {
return ofy().load()
return ofy().loadWithMemcache()
.type(Registrar.class)
.parent(getCrossTldKey())
.id(clientId)