mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-03 11:24:34 +08:00
优化缓存策略
This commit is contained in:
@@ -149,6 +149,8 @@ public class SimpleUserService extends AbstractService<UserEntity, String>
|
||||
@Caching(evict = {
|
||||
@CacheEvict(value = USER_CACHE_NAME, key = "#userId"),
|
||||
@CacheEvict(value = USER_AUTH_CACHE_NAME, key = "#userId"),
|
||||
@CacheEvict(value = USER_AUTH_CACHE_NAME,key = "'user-menu-list:'+#userId"),
|
||||
@CacheEvict(value = USER_AUTH_CACHE_NAME,key = "'menu-tree:'+#userId")
|
||||
})
|
||||
public void update(String userId, UserEntity userEntity) {
|
||||
userEntity.setId(userId);
|
||||
|
||||
Reference in New Issue
Block a user