Difference / Relationship between EhCache v2 and EhCache v3

风流意气都作罢 提交于 2019-12-21 03:00:23

问题


Recently I am doing some research about the performance of java local caches and, of course, I run into ehcache. As far as can see in the documentation and in the artifacts published in maven repository, it seems that there are two active development lines, version 2 and version 3. Furthermore, spring-boot include both in the super pom.

So, my question is: what is it that for? Do both chase the same objectives? What functionalities include version 3?

Thanks in advance!


回答1:


Version 3 is, as you would expect, the new version. Version 2 is still wildly used and for some time, version 3 was missing some features, including clustering. This is why Spring-Boot embed both.

Right now version 3 is the actively maintained and developed version. It should in fact be faster. It is also type-safe and JSR107 (JCache) compatible.

If this is not your experience, I am highly interested in seeing your benchmark.



来源:https://stackoverflow.com/questions/47163873/difference-relationship-between-ehcache-v2-and-ehcache-v3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!