摘要: @(MyBatis)[Cache] MyBatis源码分析——Cache接口以及实现 Cache接口 MyBatis中的Cache以SPI实现,给需要集成其它Cache或者自定义Cache提供了接口。 public interface Cache { String getId(); void put 阅读全文
posted @ 2016-07-25 22:47 Jabnih 阅读(3843) 评论(0) 推荐(1) 编辑
摘要: @(MyBatis)[Cache] MyBatis Cache配置 MyBatis提供了一级缓存和二级缓存 配置 全局配置 |配置|说明|默认值|可选值| |: | | | | |cacheEnabled| 全局缓存的开关 |true|true false| |localCacheScope| 本地 阅读全文
posted @ 2016-07-25 22:43 Jabnih 阅读(2220) 评论(0) 推荐(0) 编辑