|
@@ -2,8 +2,10 @@ package com.qmth.distributed.print.business.cache;
|
|
|
|
|
|
import com.qmth.distributed.print.business.util.RedisUtil;
|
|
|
import com.qmth.distributed.print.common.contant.SpringContextHolder;
|
|
|
+import com.qmth.distributed.print.common.contant.SystemConstant;
|
|
|
|
|
|
import java.util.Map;
|
|
|
+import java.util.concurrent.TimeUnit;
|
|
|
|
|
|
/**
|
|
|
* @Description: 生成pdf cache
|
|
@@ -17,6 +19,7 @@ public class CreatePdfCacheUtil {
|
|
|
|
|
|
public static void setCurrentPaperType(Long printPlanId, Map<String, Object> map) {
|
|
|
redisUtil.setForHash(RedisKeyHelper.printPlanIdCurrentPaperTypeKey(printPlanId), map);
|
|
|
+ redisUtil.expire(RedisKeyHelper.printPlanIdCurrentPaperTypeKey(printPlanId), SystemConstant.REDIS_CREATE_PDF_EXPIRE_TIME, TimeUnit.SECONDS);
|
|
|
}
|
|
|
|
|
|
public static Map getCurrentPaperType(Long printPlanId) {
|