feat:指数倍提升性能,使用缓存
This commit is contained in:
parent
03e3a09af6
commit
41bf2e49dc
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user