File tree Expand file tree Collapse file tree
eladmin-common/src/main/java/me/zhengjie/utils
eladmin-system/src/main/java/me/zhengjie/modules Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16-
1716package me .zhengjie .utils ;
1817
1918
2322 * @apiNote: 关于缓存的Key 集合
2423 */
2524public interface CacheKey {
25+
2626 /**
2727 * 内置 用户、岗位、应用、菜单、角色 相关key
2828 */
@@ -41,7 +41,6 @@ public interface CacheKey {
4141 /**
4242 * s数据
4343 */
44-
4544 String DATE_USER = "data::user:" ;
4645 /**
4746 * 菜单
Original file line number Diff line number Diff line change 2828import me .zhengjie .service .EmailService ;
2929import me .zhengjie .utils .RedisUtils ;
3030import me .zhengjie .utils .SpringContextHolder ;
31+ import me .zhengjie .utils .StringUtils ;
3132import me .zhengjie .utils .ThrowableUtil ;
3233import org .quartz .JobExecutionContext ;
3334import org .springframework .scheduling .annotation .Async ;
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ public void delCaches(Long id) {
234234 private void cleanCache (Role resources , List <User > users ) {
235235 // 清理缓存
236236 if (CollectionUtil .isNotEmpty (users )) {
237- users .stream (). forEach (item -> {
237+ users .forEach (item -> {
238238 userCacheClean .cleanUserCache (item .getUsername ());
239239 });
240240 Set <Long > userIds = users .stream ().map (User ::getId ).collect (Collectors .toSet ());
You can’t perform that action at this time.
0 commit comments