|
@@ -189,10 +189,10 @@ class RedisOperations:
|
|
|
return False
|
|
|
|
|
|
def save_video_id(self, videoID):
|
|
|
- """将视频ID存储到Redis中,并为其设置7天的过期时间"""
|
|
|
+ """将视频ID存储到Redis中,并为其设置3天的过期时间"""
|
|
|
try:
|
|
|
key = f"crawler:zqkd:{videoID}"
|
|
|
- expiration_time = int(timedelta(days=7).total_seconds())
|
|
|
+ expiration_time = int(timedelta(days=3).total_seconds())
|
|
|
self.client.setex(key, expiration_time, "1")
|
|
|
except Exception as e:
|
|
|
tb = traceback.format_exc()
|