-
Notifications
You must be signed in to change notification settings - Fork 51
tony mybatis cache
徐植君 edited this page Dec 5, 2021
·
1 revision
mybatis的二级缓存快速启动器,目前实现了redis和j2cache,未来将提供更多缓存实现
<dependency>
<groupId>com.tony</groupId>
<artifactId>tony-mybatis-cache-spring-boot-starter</artifactId>
<version>${tony-starter.version}</version>
</dependency>
<setting name="cacheEnabled" value="true"/>
@CacheNamespace(implementation = RedisCacheAdapter.class, eviction = RedisCacheAdapter.class)
public interface UserMapper extends BaseMapper<User> {
}