mirror of
https://github.com/google/nomulus
synced 2026-02-11 23:31:37 +00:00
Read from bloom filter for premium pricing checks
This also cleans up the PremiumList API so that it only has one method for checking premium prices, which is by TLD, rather than two. I will be refactoring a lot of the static methods currently residing in the PremiumList class into a separate utils class, but I don't want to include too many changes in this one CL. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=148475345
This commit is contained in:
@@ -1135,6 +1135,13 @@ public final class RegistryConfig {
|
||||
return Duration.standardSeconds(CONFIG_SETTINGS.get().caching.singletonCachePersistSeconds);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the maximum number of premium list entries across all TLDs to keep in in-memory cache.
|
||||
*/
|
||||
public static int getStaticPremiumListMaxCachedEntries() {
|
||||
return CONFIG_SETTINGS.get().caching.staticPremiumListMaxCachedEntries;
|
||||
}
|
||||
|
||||
/** Returns the email address that outgoing emails from the app are sent from. */
|
||||
public static String getGSuiteOutgoingEmailAddress() {
|
||||
return CONFIG_SETTINGS.get().gSuite.outgoingEmailAddress;
|
||||
|
||||
Reference in New Issue
Block a user