算了多保留几天
This commit is contained in:
parent
c11ca00626
commit
2f9dd58ac4
@ -46,7 +46,7 @@ public class NotificationChargeOrderInfoTask extends CoreDispatcher {
|
||||
Instant now = Instant.now();
|
||||
for (String okey : orderKeys) {
|
||||
Date otime = DateUtil.orderNo2Date(okey.substring(6));
|
||||
if (Duration.between(otime.toInstant(), now).toHours() > 24 * 5) {
|
||||
if (Duration.between(otime.toInstant(), now).toHours() > 24 * 3) {
|
||||
REDIS.deleteObject(okey);
|
||||
REDIS.deleteObject(okey.replace("order", "pushOrder"));
|
||||
logger.info("clear cache..{}", okey);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user