add job CacheKey

pull/568/head
wangmingcan 2021-01-16 10:51:30 +08:00
parent e7deb482d1
commit f49680ad9b
2 changed files with 5 additions and 1 deletions

View File

@ -47,6 +47,10 @@ public interface CacheKey {
*
*/
String DEPT_ID = "dept::id:";
/**
*
*/
String JOB_ID = "job::id:";
/**
*
*/

View File

@ -100,7 +100,7 @@ public class JobServiceImpl implements JobService {
public void delete(Set<Long> ids) {
jobRepository.deleteAllByIdIn(ids);
// 删除缓存
redisUtils.delByKeys("job::id:", ids);
redisUtils.delByKeys(CacheKey.JOB_ID, ids);
}
@Override