Skip to content

Commit

Permalink
Update program config
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardszczepanski committed Feb 26, 2017
1 parent f6c00b2 commit 62f8ae7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class ProgramConfig {

public static final int CACHE_LIMIT = 10;
public static final double CACHE_CLEAR_PERCENTAGE_SIZE = 0.40;
public static final int CACHED_RESULTS_TO_CLEAR_SIZE = 4;

public static final int DELAY_TYPE_TIME_FOR_TRIGGER_SEARCH_IN_MS = 300;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public SettingsPropertiesMapper settingsPropertiesMapper() {
public Cache cache() {
// return new SimpleSearchCache(ProgramConfig.CACHE_LIMIT,
// ProgramConfig.CACHE_CLEAR_PERCENTAGE_SIZE);
return new LexicalFrequencySearchCache(ProgramConfig.CACHE_LIMIT, 4);
return new LexicalFrequencySearchCache(ProgramConfig.CACHE_LIMIT, ProgramConfig.CACHED_RESULTS_TO_CLEAR_SIZE);
}

@Bean
Expand Down

0 comments on commit 62f8ae7

Please sign in to comment.