zhangyong 8 tháng trước cách đây
mục cha
commit
026947a23b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      common/redis.py

+ 1 - 1
common/redis.py

@@ -50,7 +50,7 @@ def get_redis_video_data(video_id):
     lock = f"video_lock:{video_id}"
     helper = SyncRedisHelper()
     client = helper.get_client()
-    acquire_lock = client.set(lock, 1, ex=600, nx=True)
+    acquire_lock = client.set(lock, 1, ex=1200, nx=True)
     if not acquire_lock:
         return True
     return False