java Hibernate ehCache不工作
我们正在尝试在应用程序中使用ehCache,但由于某些原因,它似乎不起作用, 我们没有例外,但在查看liveCacheStatistics时,我们没有看到任何点击、错误或任何内容
我在这本手册中描述了实体:
@Entity
@Cacheable
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@Table(name = "Table_NAME")
public class MyEntity implements Serializable
{
// some code here..
}
我确保多次请求此实体
然后我刹车点,看
CacheManager.getInstance().getCache(cacheName).getLiveCacheStatistics().liveDelegate
而且都是零
这里会有什么问题?我错过了什么
Thx提前
共 (0) 个答案