comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesVectorOutputState.java @ 1060:cc4ec127d666

Remove the elements of an outdated state from cache if its endOfLife method is called. gnv-artifacts/trunk@1143 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 01 Jun 2010 16:54:21 +0000
parents 8a8ee5abc084
children 9bb1979aabbe
comparison
equal deleted inserted replaced
1059:174f6eacd595 1060:cc4ec127d666
95 95
96 if (factory.isInitialized()) { 96 if (factory.isInitialized()) {
97 // we use a cache 97 // we use a cache
98 logger.info("Using cache."); 98 logger.info("Using cache.");
99 Cache cache = factory.getCache(); 99 Cache cache = factory.getCache();
100 String key = "chart_" + getHash(uuid); 100 String key = "chart_" + getHash();
101 101
102 net.sf.ehcache.Element value = cache.get(key); 102 net.sf.ehcache.Element value = cache.get(key);
103 if (value != null) { 103 if (value != null) {
104 logger.debug("Found element in cache."); 104 logger.debug("Found element in cache.");
105 return value.getObjectValue(); 105 return value.getObjectValue();

http://dive4elements.wald.intevation.org