Re: [Carbon-dev] Caches Map

2012-02-04 Thread Senaka Fernando
Hi Dimuthu, For in-memory you need it anyway, but even for Infinispan for example. That's to maintain references of the Cache itself. We have more than one named cache in Carbon. For example, one for registry resources, one for UM etc. This gives better performance, since not everything is

[Carbon-dev] Caches Map

2012-02-03 Thread Dimuthu Leelarathne
Hi Senaka, I see a hashmap like this in InfinispanCacheManager. private final MapString, Cache caches = Collections.synchronizedMap(new HashMapString, Cache()); I think this code comes from InMemoryCacheManager and I don't see real purpose of it. I am going to remove it. WDYT? thanks,