3

Spring Modules had a @Cacheable annotation:

org.springmodules.cache.annotations.Cacheable

Now that Spring Module is deprecated, what is the recommendation for caching? And is still still possible to work with ehCache?

Francois
  • 2,289
  • 4
  • 20
  • 21

4 Answers4

2

Users of Spring Modules have rather been left out on a limb. There's no direct replacement for @Cacheable that I'm aware of.

Spring does have some support for EhCache, though, in the form of EhCacheFactoryBean and related classes (see javadoc). This gives a pretty easy way of creating and managing EhCache instances, but you then have to make use of it manually.

skaffman
  • 398,947
  • 96
  • 818
  • 769
  • http://code.google.com/p/ehcache-spring-annotations/ is an ehcache specific replacement for the spring-module cache annotations. – Eric Apr 12 '11 at 20:19
0

The distribute cache server is memcached. I has api to java. http://memcached.org/

imcaptor
  • 360
  • 1
  • 8
0

This project is intended as a direct replacement: http://code.google.com/p/ehcache-spring-annotations/

Rob
  • 353
  • 4
  • 16
0

This is now found in spring-context. I have not checked how far back it is, but it is in the 4.1.4.RELEASE.

\org\springframework\cache\annotation\

brostbeef
  • 366
  • 3
  • 15