File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
eladmin-common/src/main/java/me/zhengjie/utils
eladmin-system/src/main/java/me/zhengjie/modules Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
-
17
16
package me .zhengjie .utils ;
18
17
19
18
23
22
* @apiNote: 关于缓存的Key 集合
24
23
*/
25
24
public interface CacheKey {
25
+
26
26
/**
27
27
* 内置 用户、岗位、应用、菜单、角色 相关key
28
28
*/
@@ -41,7 +41,6 @@ public interface CacheKey {
41
41
/**
42
42
* s数据
43
43
*/
44
-
45
44
String DATE_USER = "data::user:" ;
46
45
/**
47
46
* 菜单
Original file line number Diff line number Diff line change 28
28
import me .zhengjie .service .EmailService ;
29
29
import me .zhengjie .utils .RedisUtils ;
30
30
import me .zhengjie .utils .SpringContextHolder ;
31
+ import me .zhengjie .utils .StringUtils ;
31
32
import me .zhengjie .utils .ThrowableUtil ;
32
33
import org .quartz .JobExecutionContext ;
33
34
import org .springframework .scheduling .annotation .Async ;
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ public void delCaches(Long id) {
234
234
private void cleanCache (Role resources , List <User > users ) {
235
235
// 清理缓存
236
236
if (CollectionUtil .isNotEmpty (users )) {
237
- users .stream (). forEach (item -> {
237
+ users .forEach (item -> {
238
238
userCacheClean .cleanUserCache (item .getUsername ());
239
239
});
240
240
Set <Long > userIds = users .stream ().map (User ::getId ).collect (Collectors .toSet ());
You can’t perform that action at this time.
0 commit comments