English 中文(简体)
When using ehcache, what synchronization do I need to do?
原标题:
  • 时间:2010-02-05 21:47:13
  •  标签:
  • ehcache

Let s say I start with a single CacheManager like this: private static CacheManager manager = CacheManager.create();

When I call getCache or addCache do I need to synchronize on the CacheManager first?

When I call put or get on the Cache, should I synchronize on the Cache first?

最佳回答

These docs imply that you have to synchronize on the CacheManager instance, as, for example, addCache throws an exception if the given cache "already exists" in the cache.

问题回答

暂无回答




相关问题
When using ehcache, what synchronization do I need to do?

Let s say I start with a single CacheManager like this: private static CacheManager manager = CacheManager.create(); When I call getCache or addCache do I need to synchronize on the CacheManager ...

Terracotta With Hibernate and EHCache

Head swimming with the product name soup at http://www.terracotta.org. Need someone to help clarify what I need. Background: app has some "legacy" persistence code that does not use Hibernate, but ...

problem creating an EhCache Cache from spring

Reading the javadoc for EhCacheManagerFactoryBean and EhCacheFactoryBean I figured that: <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" p:...

重要数据

我有兴趣获得关于我所管理的Ehcache的统计数字。

Architecture question for implementation of a cache server

This is something of an architecture question. I have this idea of having a server with huge memory, that is used as a big objects cache holder. The clients send "Actions" to this server(like Search ...

cannot do 2nd level cache

in my applicationcontext.xml <bean id="annotatedsessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <property name="packagesToScan" value="...

EntityDelete ColdFusion EHCache

How do i delete an Hibernate Entity that is being cached by EHcache and by using Entitydelete in coldfusion?

热门标签