EhCache v2和EhCache v3之间的差异/关系 [英] Difference / Relationship between EhCache v2 and EhCache v3

查看:345
本文介绍了EhCache v2和EhCache v3之间的差异/关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我对Java本地缓存的性能进行了一些研究,当然,我遇到了ehcache。从文档和Maven存储库中发布的工件中可以看到,似乎有两个活跃的开发线,即版本2和版本3。此外,spring-boot在super pom中都包括了这两个。

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.

所以,我的问题是:这是为了什么?两者追求相同的目标吗?版本3包含哪些功能?

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

谢谢!

推荐答案

版本3是新版本。版本2仍然被广泛使用,并且一段时间以来,版本3缺少一些功能,包括集群功能。这就是Spring-Boot嵌入两者的原因。

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.

现在,第3版是积极维护和开发的版本。实际上它应该更快。它也是类型安全的,并且与JSR107(JCache)兼容。

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.

这篇关于EhCache v2和EhCache v3之间的差异/关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆