@EnableCaching
public class CachingConfiguration implements CachingConfigurer {
private static final Logger LOG = LoggerFactory.getLogger(CachingConfiguration.class);
private static final String ATTACHMENTS = "attachmentCache";
private static final int TTL_10_MINUTES = 600;
<BUG>private static final int TTL_30_MINUTES = 1800;</BUG>
private static final int TTL_ONE_DAY = 86400;
@Bean(destroyMethod="shutdown")
public net.sf.ehcache.CacheManager ehCacheManager() {
return net.sf.ehcache.CacheManager.create(
new net.sf.ehcache.config.Configuration()
.defaultCache(cacheConfig("default", 100, TTL_10_MINUTES))
.cache(cacheConfig(ATTACHMENTS, 300, TTL_10_MINUTES))
<BUG>.cache(cacheConfig(CachingNames.API_IMDB, 500, TTL_30_MINUTES))</BUG>
.cache(cacheConfigDatabase(CachingNames.DB_GENRE, 50, TTL_ONE_DAY))

@EnableCaching
public class CachingConfiguration implements CachingConfigurer {
private static final Logger LOG = LoggerFactory.getLogger(CachingConfiguration.class);
private static final String ATTACHMENTS = "attachmentCache";
private static final int TTL_10_MINUTES = 600;
private static final int TTL_ONE_DAY = 86400;
@Bean(destroyMethod="shutdown")
public net.sf.ehcache.CacheManager ehCacheManager() {
return net.sf.ehcache.CacheManager.create(
new net.sf.ehcache.config.Configuration()
.defaultCache(cacheConfig("default", 100, TTL_10_MINUTES))
.cache(cacheConfig(ATTACHMENTS, 300, TTL_10_MINUTES))
.cache(cacheConfigDatabase(CachingNames.DB_GENRE, 50, TTL_ONE_DAY))
