<BUG>cache.getCacheConfiguration().setTimeToLiveSeconds(env.getProperty("jhipster.cache.timeToLiveSeconds", Long.class, 3600L));</BUG><CONTEXT>name = entity.getJavaType().getName();}Assert.notNull(name, "entity cannot exist without a identifier");net.sf.ehcache.Cache cache = cacheManager.getCache(name);if (cache != null) {<extra_id_0>net.sf.ehcache.Ehcache decoratedCache = InstrumentedEhcache.instrument(metricRegistry, cache);cacheManager.replaceCacheWithDecoratedCache(cache, decoratedCache);}</CONTEXT>
cache.getCacheConfiguration().setTimeToLiveSeconds(jHipsterProperties.getCache().getTimeToLiveSeconds());