Revision 87734bf5
Added by Andreas Müller over 1 year ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/cdm/api/cache/CdmServiceCachingProxy.java | ||
---|---|---|
46 | 46 |
* @author cmathew |
47 | 47 |
*/ |
48 | 48 |
public class CdmServiceCachingProxy |
49 |
extends CdmCacherBase
|
|
49 |
extends CdmPermanentCacheBase
|
|
50 | 50 |
implements ICdmEntitySessionManagerObserver { |
51 | 51 |
|
52 | 52 |
private static final Logger logger = LogManager.getLogger(); |
... | ... | |
106 | 106 |
} |
107 | 107 |
|
108 | 108 |
@Override |
109 |
protected CacheConfiguration getDefaultCacheConfiguration() {
|
|
109 |
protected CacheConfiguration getPermanentCacheConfiguration() {
|
|
110 | 110 |
// For a better understanding on how to size caches, refer to |
111 | 111 |
// http://ehcache.org/documentation/configuration/cache-size |
112 | 112 |
|
... | ... | |
114 | 114 |
sizeOfConfig.setMaxDepth(100); |
115 | 115 |
sizeOfConfig.setMaxDepthExceededBehavior("abort"); |
116 | 116 |
|
117 |
return new CacheConfiguration(DEFAULT_CACHE_NAME, 0)
|
|
117 |
return new CacheConfiguration(PERMANENT_CACHE_NAME, 0)
|
|
118 | 118 |
.eternal(true) |
119 | 119 |
.sizeOfPolicy(sizeOfConfig) |
120 | 120 |
.overflowToOffHeap(false); |
Also available in: Unified diff
ref #10214 rename CdmCacheBase to CdmPermanentCacheBase in TaxEditor