mirror of
https://github.com/google/nomulus.git
synced 2025-07-01 00:33:34 +02: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:
parent
3ac74fa449
commit
3ca9bb6aeb
18 changed files with 328 additions and 282 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue