摘要
MyBatis:
官方文档:https://mybatis.org/mybatis-3/index.html (opens new window)
# 一:前言
MyBatis支持声明式数据缓存(declarative data caching)。当一条SQL语句被标记为 "可缓存" 后,首次执行它时从数据库获取的所有数据会被存储在高速缓存中,后面再执行这条语句时就会从高速缓存中读取结果,而不是再次命中数据库。MyBatis 提供了默认情况下基于 Java HashMap的缓存实现,以及用于与OSCache、Ehcache、Hazelcast和Memcached连接的默认连接器,同时还提供了API供其他缓存实现使用。
相关Github常用项目说明:
- https://github.com/mybatis (opens new window) :MyBatis官方Github总入口,包含多个子项目
- https://github.com/mybatis/mybatis-3 (opens new window) :mybatis-3源码
- https://github.com/mybatis/generator (opens new window) :代码生成器
- https://github.com/mybatis/ehcache-cache (opens new window) :默认集成Ehcache的缓存实现
- https://github.com/mybatis/redis-cache (opens new window) :默认集成Redis的缓存实现
- https://github.com/mybatis/spring (opens new window) :方便和Spring集成的工具类
- https://github.com/mybatis/spring-boot-starter (opens new window) :方便和Spring Boot集成的工具类
# 二:参考文献
- 《MyBatis从入门到精通 - 刘增辉》
- MyBatis官网 (opens new window)