187得票15回答
Spring缓存@Cacheable:从同一bean的另一个方法调用时无法工作

当从同一Bean的另一个方法调用缓存方法时,Spring缓存就不起作用了。 这里有一个例子来清楚地解释我的问题。 配置:<cache:annotation-driven cache-manager="myCacheManager" /> <bean id="myCacheM...

185得票6回答
"on-heap"和"off-heap"的区别

Ehcache 谈论 on-heap 和 off-heap 内存。它们有什么区别?使用哪些 JVM 参数来配置它们?

116得票3回答
如何区分Ehcache中的TTL和TIDLE?

ehcache的文档中写道:timeToIdleSeconds: Sets the time to idle for an element before it expires. i.e. The maximum amount of time between accesses before an...

106得票6回答
多个方法参数上的@Cacheable键

来自Spring文档:@Cacheable(value="bookCache", key="isbn") public Book findBook(ISBN isbn, boolean checkWarehouse, boolean includeUsed) 我该如何指定 @Cachable ...

81得票18回答
在同一虚拟机中已经存在另一个未命名的CacheManager(ehCache 2.5)

运行我的JUnit测试时会发生什么...Another CacheManager with same name 'cacheManager' already exists in the same VM. Please provide unique names for each CacheMa...

66得票2回答
Hibernate + Spring中的缓存 - 一些问题

我正在使用Spring 3和Hibernate 3.6开发Web应用程序。目前,我试图了解Spring和Hibernate中的缓存机制如何工作。我找到了一些关于Hibernate缓存的资料和一些关于Spring的资料,现在我正在尝试将我的信息整合在一起。我仍然对这两个框架有一些疑问,如果有人能...

64得票7回答
Hazelcast与Ehcache对比

正如您在标题中所看到的那样,问题很明确,希望听听您对它们之间优缺点差异的看法。 更新: 我决定使用Hazelcast,因为它具有分布式缓存/锁定机制以及极其简单的配置,可将其适应于您的应用程序,这些都是它的优点。

47得票5回答
在Tomcat中重新部署应用程序时发生内存泄漏

当我在Tomcat中重新部署我的应用程序时,我遇到了以下问题: The web application [] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLoca...

46得票5回答
使用Ehcache多播时出现“无法分配请求的地址”java.net.SocketException

尝试启动多播提供程序时出现java.net.SocketException: 2013-09-11 11:45:44,204 [main] ERROR net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider: Erro...

40得票2回答
在Spring 4中不使用XML使用EhCache

是否有一种方法可以在Spring 4或Spring Boot中不使用xml来初始化EhCache? 我注意到Spring Boot 1.0.0.RC3没有任何ehcache依赖项,但是 Spring 4.0GA release post 提到它已经改进了对EhCache的支持。此外,Spri...