将 javax.cache.CacheManager 与 EhCache 结合使用
我正在尝试使用 javax.cache.CacheManager JSR107 API,并使用 EhCache 作为缓存解决方案提供程序。但我无法找到任何此类资源。
根据 http://ehcache.org/documentation/integrations/jsr107 的链接,它说ehcache jsr107 仍处于草案阶段。任何人都可以确认情况是否仍然如此吗?
有任何使用 JSR107 javax.cache.* 类来使用 net sf cacheManager 的示例代码吗?
谢谢, 哈里什
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如 此页面:
您可以在 Github 存储库中找到这项工作。如果您看到 JCacheManager 实现 javax.cache.CacheManager
As specified in this page:
This effort can be found in the Github repository. If you see JCacheManager implements javax.cache.CacheManager
现在 API 已经最终确定,这是一个更好的答案。把这个放在你的 pom 中:
然后你就出发了。使用任何这样的注释进行注释:(祝你好运找到 javadocs!)
不过我同意,文档很糟糕。
这是 更多 javax.cache 信息。
Here's a better answer now the API is finalised. Stick this in your pom:
And you're off. Annotate with any of the annotations like this: (good luck finding the javadocs!)
I agree though, the documentation sucks.
Here's more javax.cache info if you're interested.