Caching with the Spring Framework

Spring Modules had @Cacheable annotation:

org.springmodules.cache.annotations.Cacheable

Now that the Spring module is out of date, what is the recommendation for caching? And can you still work with ehCache?

+3
source share
4 answers

Users of Spring Modules are more likely to remain on a limb. There is no direct substitute for the @Cacheableone I know of.

Spring has some support for EhCache, but in form EhCacheFactoryBeanand related classes (see javadoc ). This provides a fairly simple way to create and manage EhCache instances, but you must use it manually.

+2
source

The distributed memcached cache server. I have api for java. http://memcached.org/

0
source

Now it is in spring -context. I did not check how far back, but it is in 4.1.4.RELEASE.

\ org \ springframework \ cache \ annotation \

0
source

Source: https://habr.com/ru/post/1746307/


All Articles