ehcache区域最好有很多还是尽可能少?

huangapple 未分类评论43阅读模式
英文:

ehcache regions better to have a lot of them or as few as possible?

问题

运行使用EHcache的应用程序时,出现以下警告:

WARN  org.hibernate.cache.ehcache.AbstractEhcacheRegionFactory - HHH020003: 无法找到缓存 [org.hibernate.cache.spi.UpdateTimestampsCache] 的特定ehcache配置;将使用默认值。

我理解我没有指定任何区域,他正在为此创建一些默认值。

我想修复这个问题,但我似乎找不到一些解释区域究竟是什么,以及是将许多实体放入一个区域更好(例如代码库实体),还是每个实体都有一个区域更好。

是否有人可以解释并可能链接一些文档或教程?

我相信这对更多的人可能有用,因为当我搜索时,我发现没有什么真正与我相关的针对EHcache(或任何缓存)的初学者的内容。

谢谢!

<details>
<summary>英文:</summary>

When running my application with EHcache, I am getting 

    WARN  org.hibernate.cache.ehcache.AbstractEhcacheRegionFactory - HHH020003: Could not find a specific ehcache configuration for cache named [org.hibernate.cache.spi.UpdateTimestampsCache]; using defaults.

I understand, that I didn&#39;t specified any region and that he is creating some defaults for that.

I wanted to fix this, but I cannot seem to find out some documentation that explains what exactly are the regions, and whether it is better to put many entities into one region (e.g. codebook entities) or if it is better to have one region per entity. 

Could somebody explain and maybe link some dokumentation or tutorial?

I believe this might be useful to more people, since when I google it i find nothing really relevant for me as a first-time user of ehcache (or any cache). 

Thank you!

</details>


huangapple
  • 本文由 发表于 2020年4月9日 18:01:31
  • 转载请务必保留本文链接:https://java.coder-hub.com/61118587.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定