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