Author: rareddy
Date: 2010-11-09 12:24:57 -0500 (Tue, 09 Nov 2010)
New Revision: 2716
Modified:
branches/7.2.x/cache-jbosscache/src/main/java/org/teiid/cache/jboss/JBossCacheFactory.java
Log:
TEIID-1350: having a string based expiration at root is not needed, as setResident is set
to true. Since we do not know the key types going in to cache, assuming that all keys are
going to strings is wrong.
Modified:
branches/7.2.x/cache-jbosscache/src/main/java/org/teiid/cache/jboss/JBossCacheFactory.java
===================================================================
---
branches/7.2.x/cache-jbosscache/src/main/java/org/teiid/cache/jboss/JBossCacheFactory.java 2010-11-09
17:15:56 UTC (rev 2715)
+++
branches/7.2.x/cache-jbosscache/src/main/java/org/teiid/cache/jboss/JBossCacheFactory.java 2010-11-09
17:24:57 UTC (rev 2716)
@@ -64,7 +64,6 @@
Node cacheRoot =
this.cacheStore.getRoot().addChild(Fqn.fromString("Teiid")); //$NON-NLS-1$
Node node = cacheRoot.addChild(Fqn.fromString(type.location()));
- node.put(ExpirationAlgorithmConfig.EXPIRATION_KEY, Long.MAX_VALUE);
node.setResident(true);
Region cacheRegion = this.cacheStore.getRegion(node.getFqn(), true);