Spring Cache

来源:互联网 发布:智学网mac版本 编辑:程序博客网 时间:2024/05/24 01:38

Spring Cache 


支持多个缓存( backing store)。用CompositeCacheManager 类管理   


个人觉得缓存没必要有backing store ,一是储存的时候需要存储多个源,本身也是个开销,另外现在一些比较缓存方案已经有很好的特性支持备份如redis等


<bean id="cacheManager" class="org.springframework.cache.support.CompositeCacheManager"><property name="cacheManagers"><list><ref bean="jdkCache"/><ref bean="gemfireCache"/></list></property><property name="addNoOpCache" value="true"/></bean>




0 0