|
@@ -51,7 +51,7 @@ public class ApplyTaskCacheService implements CacheConstants {
|
|
|
}
|
|
|
|
|
|
redisClient.set(cacheKey, value, 5, TimeUnit.MINUTES);
|
|
|
- log.info("{} = id:{} name:{}", cacheKey, value.getTaskId(), value.getTaskName());
|
|
|
+ log.info("SET cacheKey:{} curApplyTaskId:{}", cacheKey, value.getTaskId());
|
|
|
|
|
|
return value;
|
|
|
}
|
|
@@ -59,7 +59,7 @@ public class ApplyTaskCacheService implements CacheConstants {
|
|
|
public void clearCurrentApplyTaskCache(Long orgId) {
|
|
|
String cacheKey = String.format(CACHE_CURRENT_APPLY_TASK, orgId);
|
|
|
redisClient.delete(cacheKey);
|
|
|
- log.warn("清理缓存!cacheKey:{}", cacheKey);
|
|
|
+ log.warn("DELETE cacheKey:{}", cacheKey);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -74,7 +74,7 @@ public class ApplyTaskCacheService implements CacheConstants {
|
|
|
|
|
|
value = studentService.findStudentApplyNumberById(studentId);
|
|
|
redisClient.set(cacheKey, value, 5, TimeUnit.MINUTES);
|
|
|
- log.info("{} = {}", cacheKey, value);
|
|
|
+ log.info("SET cacheKey:{} value:{}", cacheKey, value);
|
|
|
|
|
|
return value;
|
|
|
}
|
|
@@ -82,7 +82,7 @@ public class ApplyTaskCacheService implements CacheConstants {
|
|
|
public void clearStudentApplyNumberCache(Long studentId) {
|
|
|
String cacheKey = String.format(CACHE_STUDENT_APPLY_NUMBER, studentId);
|
|
|
redisClient.delete(cacheKey);
|
|
|
- log.warn("清理缓存!cacheKey:{}", cacheKey);
|
|
|
+ log.warn("DELETE cacheKey:{}", cacheKey);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -97,7 +97,7 @@ public class ApplyTaskCacheService implements CacheConstants {
|
|
|
|
|
|
value = examSiteService.countExamSiteCapacityById(examSiteId);
|
|
|
redisClient.set(cacheKey, value, 5, TimeUnit.MINUTES);
|
|
|
- log.info("{} = {}", cacheKey, value);
|
|
|
+ log.info("SET cacheKey:{} value:{}", cacheKey, value);
|
|
|
|
|
|
return value;
|
|
|
}
|
|
@@ -105,7 +105,7 @@ public class ApplyTaskCacheService implements CacheConstants {
|
|
|
public void clearApplyTotalCountCache(Long examSiteId) {
|
|
|
String cacheKey = String.format(CACHE_APPLY_TOTAL, examSiteId);
|
|
|
redisClient.delete(cacheKey);
|
|
|
- log.warn("清理缓存!cacheKey:{}", cacheKey);
|
|
|
+ log.warn("DELETE cacheKey:{}", cacheKey);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -122,7 +122,7 @@ public class ApplyTaskCacheService implements CacheConstants {
|
|
|
int value = studentApplyService.countApplyFinishForExamSiteAndTimePeriod(examSiteId, timePeriodId);
|
|
|
atomic.set(value);
|
|
|
atomic.expire(30, TimeUnit.DAYS);
|
|
|
- log.info("{} = {}", cacheKey, value);
|
|
|
+ log.info("SET cacheKey:{} value:{}", cacheKey, value);
|
|
|
|
|
|
return value;
|
|
|
}
|