1. cache key generation stackoverflow.comI'm using ehcache (via the Grails plugin). The method that adds objects to the cache requires the keys to be serializable, so a typical usage would be:
|
2. Ehcache Statistics by key stackoverflow.comI am interested in getting statistics on the Ehcache I have running. |
3. Cache key organization problem stackoverflow.comMy entity has two unique ids (yes this is wrong but it is a requirement). I want to organize a cache of such instances. The search in cache could be made ... |
4. EhCache key type stackoverflow.comIn EhCache, when adding an element to the cache :
I see I can give an Object as the key index.
How can I use ... |
5. the shortest toString as ehcache key stackoverflow.comI used ehcache with ehcache-spring-annotations. The first time, we choose HashCodeCacheKeyGenerator. It was pretty good. but 1 month ago we found "key duplication". So we replaced HashCodeCacheKeyGenerator with StringCacheKeyGenerator. "key duplication" issue gone, but huge ... |
6. ehcache blocking on call to get keys from Terracotta cache forums.terracotta.orgHi , this is a very urgent request . below is a thread dump identical on every client (t1) . It is causing the cpu to skyrocket. "1135764388@qtp-1033311210-557" prio=10 tid=0x00002aaac5b0f800 nid=0x4418 in Object.wait() [0x000000005ea25000] java.lang.Thread.State: BLOCKED (on object monitor) at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:485) at com.tc.object.RemoteServerMapManagerImpl.waitForResult(RemoteServerMapManagerImpl.java:133) at com.tc.object.RemoteServerMapManagerImpl.getAllKeys(RemoteServerMapManagerImpl.java:107) - locked <0x000000079241b700> (a com.tc.object.RemoteServerMapManagerImpl) at com.tc.object.TCObjectServerMapImpl.keySet(TCObjectServerMapImpl.java:332) at com.terracotta.toolkit.collections.ConcurrentDistributedServerMapDso.keySet(ConcurrentDistributedServerMapDso.java:245) at com.terracotta.toolkit.util.ClusteredMapAggregateSet$ClusteredMapAggregateKeySet$1.getClusterMapIterator(ClusteredMapAggregateSet.java:40) at com.terracotta.toolkit.util.AggregateMapIterator.getNextIterator(AggregateMapIterator.java:14) ... |