Spring 缓存
Less than 1 minute
https://www.baeldung.com/spring-cache-tutorial
开启Caching
在springboot中使用cache的话,首先要引入依赖:
implementation 'org.springframework.boot:spring-boot-starter-cache'
然后我们需要使用@EnableCaching
显示的开启cache:
@Configuration
@EnableCaching
public class CachingConfig {
// cache config ....
}