|
@@ -751,7 +751,8 @@ public class ThemisCacheServiceImpl implements ThemisCacheService {
|
|
|
@Override
|
|
|
public void removeOrgExamListCache(String orgId, String examId, Long examActivityId) {
|
|
|
Map<String, Set<Long>> map = redisUtil.getHashEntries(SystemConstant.ORG_EXAM_LIST_MAP_CACHE + orgId);
|
|
|
- CopyOnWriteArraySet<Long> examActivityIdSet = (CopyOnWriteArraySet<Long>) map.get(examId);
|
|
|
+ CopyOnWriteArraySet<Long> examActivityIdSet = new CopyOnWriteArraySet<>();
|
|
|
+ examActivityIdSet.addAll(map.get(examId));
|
|
|
for (Long l : examActivityIdSet) {
|
|
|
if (l.longValue() == examActivityId.longValue()) {
|
|
|
examActivityIdSet.remove(l);
|
|
@@ -814,7 +815,7 @@ public class ThemisCacheServiceImpl implements ThemisCacheService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public Set<Long> getTodayExamListCache() {
|
|
|
+ public Set<Long> getTodayExamIdListCache() {
|
|
|
return redisUtil.getSet(SystemConstant.TODAY_EXAM_ID_LIST_CACHE);
|
|
|
}
|
|
|
|
|
@@ -824,7 +825,7 @@ public class ThemisCacheServiceImpl implements ThemisCacheService {
|
|
|
* @param examId
|
|
|
*/
|
|
|
@Override
|
|
|
- public void updateTodayExamListCache(Long examId) {
|
|
|
+ public void updateTodayExamIdListCache(Long examId) {
|
|
|
redisUtil.addSet(SystemConstant.TODAY_EXAM_ID_LIST_CACHE, examId);
|
|
|
}
|
|
|
|
|
@@ -834,7 +835,7 @@ public class ThemisCacheServiceImpl implements ThemisCacheService {
|
|
|
* @param examId
|
|
|
*/
|
|
|
@Override
|
|
|
- public void removeTodayExamListCache(Long examId) {
|
|
|
+ public void removeTodayExamIdListCache(Long examId) {
|
|
|
redisUtil.removeSet(SystemConstant.TODAY_EXAM_ID_LIST_CACHE, examId);
|
|
|
}
|
|
|
|