适配器模式-开源代码实例


开源代码实例

Spring-cache

1,spring-cache使用redis还是ehcache

2,适配器模式

2-1,适配ehcache

2-2,适配redis

 

 

 

总结

适配老系统,除了聚合老系统外,还可以继承老系统:

相关