Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

34.4. @CachePut 用法

@CachePut 每次都会执行方法,都会将结果存入指定key的缓存中,@CachePut 不会判断是否 key 已经存在,二是始终覆盖。

        
@CachePut("users")
public User find(Integer id) {

return null;

}