google-nomulus/javatests/google/registry/model
cgoldfeder c9d7e75946 Cache Registrars in memory
This replaces the memcache caching, which we think is overall a bad idea.
We load all registrars at once instead of caching each as needed, so that
the loadAllCached() methods can be cached as well, and therefore will
always produce results consistent with loadByClientIdCached()'s view of the
registrar's values. All of our prod registrars together total 300k of data
right now, so this is hardly worth optimizing further, and in any case this
will likely reduce latency even further since most requests will be
served out of memory.

While I was in the Registrar file I standardized the error messages for incorrect
password and clientId length to be the same format, and cleaned up a few
random things I noticed in the code.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=156151828
2017-05-17 12:26:11 -04:00
..
billing Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
common Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
contact Refactor out creation of server TRIDs so they can be tested 2017-04-13 10:55:47 -04:00
domain Refactor out creation of server TRIDs so they can be tested 2017-04-13 10:55:47 -04:00
eppinput Add and adjust EppInput accessors for more useful properties 2017-04-26 10:51:47 -04:00
eppoutput Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
export Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
host Refactor out creation of server TRIDs so they can be tested 2017-04-13 10:55:47 -04:00
index Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
mark Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ofy Make name and address fields required on Registrar 2017-05-17 11:44:46 -04:00
poll Refactor out creation of server TRIDs so they can be tested 2017-04-13 10:55:47 -04:00
rde Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
registrar Cache Registrars in memory 2017-05-17 12:26:11 -04:00
registry Disable memcache completely 2017-05-17 11:35:19 -04:00
reporting Refactor out creation of server TRIDs so they can be tested 2017-04-13 10:55:47 -04:00
server Rewrite ServerSecret caching and accessor logic 2017-03-07 13:30:18 -05:00
smd Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
tmch Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
transfer Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
translators Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
BUILD Require that DNS writer be set on Registry entities 2017-05-03 10:38:49 -04:00
CreateAutoTimestampTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EntityClassesTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EntityTestCase.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
EppResourceUtilsTest.java Remove the ofy().load() inside of HostResource.cloneProjectedAtTime 2017-03-13 11:22:55 -04:00
ImmutableObjectTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ModelUtilsTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ResourceCommandTestCase.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
schema.txt Add visibleInWhoisAsAbuse field in RegistrarContact 2017-05-17 11:27:24 -04:00
SchemaVersionTest.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
UpdateAutoTimestampTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00