Authored by 周少峰

unlock

... ... @@ -19,6 +19,7 @@ const removeBlack = (remoteIp) => {
key10m = `pc:limiter:10m:${remoteIp}`,
keyMax = `pc:limiter:max:${remoteIp}`,
key10mMax = `pc:limiter:10m:max:${remoteIp}`,
synchronizeKey = `pc:limiter:synchronize:${remoteIp}`,
spiderKey = `pc:limiter:spider:${remoteIp}`;
return Promise.all([
... ... @@ -26,6 +27,7 @@ const removeBlack = (remoteIp) => {
cache.delAsync(key10m),
cache.delAsync(keyMax),
cache.delAsync(key10mMax),
cache.delAsync(synchronizeKey),
cache.delAsync(spiderKey)
]);
};
... ...