Author: rareddy
Date: 2010-11-09 12:15:56 -0500 (Tue, 09 Nov 2010)
New Revision: 2715
Modified:
branches/7.1.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.1.x/cache-jbosscache/src/main/java/org/teiid/cache/jboss/JBossCacheFactory.java
===================================================================
---
branches/7.1.x/cache-jbosscache/src/main/java/org/teiid/cache/jboss/JBossCacheFactory.java 2010-11-05
18:06:57 UTC (rev 2714)
+++
branches/7.1.x/cache-jbosscache/src/main/java/org/teiid/cache/jboss/JBossCacheFactory.java 2010-11-09
17:15:56 UTC (rev 2715)
@@ -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);
Show replies by date