I want to evaluate Hazecast vs Ehcache distributed caches.
First how to use them with Spring + Hibernate project which have standard dao/service layers. Ehcache has very elegant and easy to use annotations like :
@Cacheable(cacheName = "test", keyGenerator = @KeyGenerator (
name = "SpELCacheKeyGenerator", properties = @Property(value = "#key.string(#args[0])", name = "expression")))
Is there anything like the above for Hazelcast? I didn't find any information how to use Hazelcast in that fashion for entities/dtos.
Hazelcast 2.1 is available and it has implementations for Spring Cache. Spring Cacheable annotation can be easily used with Hazelcast now.
http://www.hazelcast.com/docs/2.1/manual/multi_html/ch14s03.html