feat:指数倍提升性能,使用缓存

This commit is contained in:
wangyu 2021-12-02 23:35:39 +08:00
parent 03e3a09af6
commit 41bf2e49dc

View File

@ -53,6 +53,6 @@ public class UserBeanAuditor implements BeanAuditor<User>, BeanPoster<User> {
@Override
public void post(User data) {
// 更新缓存
reactiveRedisOperations.set(UserCacheKeys.get(data.getUsername()), data).subscribe();
reactiveRedisOperations.del(UserCacheKeys.get(data.getUsername())).subscribe();
}
}