jetcache
SpringBoot中集成阿里开源缓存访问框架JetCache实现声明式实例和方法缓存
场景 SpringBoot中通过自定义缓存注解(AOP切面拦截)实现数据库数据缓存到Redis: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/118267333 上面讲的通过自定义注解的方式实现查询数据库数据缓存,除此之外还有更 ......
jetCache框架的@Cached注解的key怎么写表达式
@Cached(name = "userCache", key = "user_#userId + '-' + #userName", expire = 3600) public User getUserByIdAndName(Long userId, String userName){ // .. ......