Hazelcast 带弹簧靴

基肖尔·约休拉

我是 Hazelcast 的新手,并使用 Spring Boot Hazelcast 新开始了一个项目。现在我正在尝试将 Hazelcast 与 Spring Boot 集成。很多人有不同的看法。但是 JCache 是集成 Spring Boot 和 Hazelcast 的最佳方式吗?

悟空

@kishore-josyula,Jcache 只是将 Hazelcast 与 Spring-Boot 集成的一种方式。Hazelcast 是通过 JCache 和 Spring Cache Annotations 实现 Spring Cache 抽象的提供者之一。(见https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-caching.html#_supported_cache_providers

Hazelcast IMap 和 JCache 具有不同的功能。您可以比较并决定:

http://docs.hazelcast.org/docs/latest/manual/html-single/index.html#map http://docs.hazelcast.org/docs/latest/manual/html-single/index.html#hazelcast -jcache

IMap如果您对使用 Jcache 没有任何要求,我建议您首先使用默认集成并查看它对您的作用。看一些例子:

https://github.com/hazelcast/hazelcast-code-samples/tree/master/hazelcast-integration/spring-cache-manager https://github.com/gokhanoner/hazelcast-spring-cache-readtimoeut

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章