CatPtain commited on
Commit
3f54b86
·
verified ·
1 Parent(s): 81e95f8

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +2 -2
server.js CHANGED
@@ -51,8 +51,8 @@ app.use(requestIp.mw());
51
  const urlMap = new Map();
52
 
53
  // 超时时间配置(以毫秒为单位)
54
- const EXPIRATION_TIME = 90 * 1000; // 90 秒
55
- const CLEANUP_INTERVAL = 60 * 1000; // 每 60 秒清理一次
56
 
57
  // 定时清理过期数据
58
  setInterval(() => {
 
51
  const urlMap = new Map();
52
 
53
  // 超时时间配置(以毫秒为单位)
54
+ const EXPIRATION_TIME = 5 * 60 * 1000; // 数据保存5分钟
55
+ const CLEANUP_INTERVAL = 5.1 * 60 * 1000; // 每 5分6 秒清理一次
56
 
57
  // 定时清理过期数据
58
  setInterval(() => {