Spring缓存机制中,包括两个方面的缓存操作

1.缓存某个方法返回的结果或者流

2.在某个方法执行前或后清空缓存

 

Spring的缓存机制是基于Spring的AOP,那么在
Spring Cache中应该存在着一个Advice。那就是
org.springframework.cache.Cache。

 

但spring并不是直接使用
org.springframework.cache.Cache,spring把Cache
对象交给org.springframework.cache.CacheManager
来管理。


在spring对EHCache的支持中,
org.springframework.cache.ehcache.EhCacheManag
er就是org.springframework.cache.CacheManager的
一个实现。

 

详细配置http://www.cnblogs.com/sin90lzc/archive/2012/07/14/2587227.html

相关文章:

  • 2021-12-18
  • 2021-12-02
  • 2022-12-23
  • 2022-01-07
  • 2022-01-08
  • 2022-12-23
  • 2021-12-19
猜你喜欢
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案