Skip to content

Commit

Permalink
removed commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
dadepo committed Nov 18, 2017
1 parent 4cc7ec9 commit 15f8f0b
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
@SpringBootApplication
@EnableCaching
@EnableSwagger2
//@EnableWebSecurity //switches off auto configuration for spring security
public class DictionaryApplication extends WebMvcConfigurerAdapter {

private final String LANG = "lang";
Expand Down Expand Up @@ -120,17 +119,10 @@ public net.sf.ehcache.CacheManager ecacheManager() {
names.setEternal(false);
names.setTimeToIdleSeconds(1800);

// CacheConfiguration nameCount = new CacheConfiguration();
// nameCount.setName("nameCount");
// nameCount.setMaxEntriesLocalHeap(0);
// nameCount.setEternal(false);
// nameCount.setTimeToIdleSeconds(1800);

net.sf.ehcache.config.Configuration config = new net.sf.ehcache.config.Configuration();
config.addCache(allNames);
config.addCache(querySearchResult);
config.addCache(names);
//config.addCache(nameCount);

return net.sf.ehcache.CacheManager.newInstance(config);
}
Expand Down

0 comments on commit 15f8f0b

Please sign in to comment.