浏览代码

update logs

deason 1 年之前
父节点
当前提交
8d0164cf93

+ 7 - 7
src/main/java/com/qmth/exam/reserve/cache/impl/ApplyTaskCacheService.java

@@ -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;
     }

+ 2 - 2
src/main/java/com/qmth/exam/reserve/cache/impl/CategoryCacheService.java

@@ -40,7 +40,7 @@ public class CategoryCacheService implements CacheConstants {
         }
 
         redisClient.set(cacheKey, value, 5, TimeUnit.MINUTES);
-        log.info("{} = id:{} name:{}", cacheKey, value.getId(), value.getName());
+        log.info("SET cacheKey:{}", cacheKey);
 
         return value;
     }
@@ -48,7 +48,7 @@ public class CategoryCacheService implements CacheConstants {
     public void clearCategoryByIdCache(Long categoryId) {
         String cacheKey = String.format(CACHE_CATEGORY, categoryId);
         redisClient.delete(cacheKey);
-        log.warn("清理缓存!cacheKey:{}", cacheKey);
+        log.warn("DELETE cacheKey:{}", cacheKey);
     }
 
     private CategoryCacheBean findInfoById(Long categoryId) {

+ 4 - 4
src/main/java/com/qmth/exam/reserve/cache/impl/OrgCacheService.java

@@ -38,7 +38,7 @@ public class OrgCacheService implements CacheConstants {
         }
 
         redisClient.set(cacheKey, value, 5, TimeUnit.MINUTES);
-        log.info("{} = id:{} name:{}", cacheKey, value.getOrgId(), value.getOrgName());
+        log.info("SET cacheKey:{}", cacheKey);
 
         return value;
     }
@@ -46,7 +46,7 @@ public class OrgCacheService implements CacheConstants {
     public void clearOrgByIdCache(Long orgId) {
         String cacheKey = String.format(CACHE_ORG, orgId);
         redisClient.delete(cacheKey);
-        log.warn("清理缓存!cacheKey:{}", cacheKey);
+        log.warn("DELETE cacheKey:{}", cacheKey);
     }
 
     /**
@@ -64,14 +64,14 @@ public class OrgCacheService implements CacheConstants {
         }
 
         redisClient.set(CACHE_CURRENT_ORG, value, 3, TimeUnit.HOURS);
-        log.info("{} = id:{} name:{}", CACHE_CURRENT_ORG, value.getOrgId(), value.getOrgName());
+        log.info("SET cacheKey:{} curOrgId:{}", CACHE_CURRENT_ORG, value.getOrgId());
 
         return value;
     }
 
     public void clearCurrentOrgCache() {
         redisClient.delete(CACHE_CURRENT_ORG);
-        log.warn("清理缓存!cacheKey:{}", CACHE_CURRENT_ORG);
+        log.warn("DELETE cacheKey:{}", CACHE_CURRENT_ORG);
     }
 
 }