mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-21 04:05:45 +08:00
Merge branch 'develop' into standalone_develop
This commit is contained in:
@@ -67,5 +67,9 @@ class Cache::V2::ProjectDateRankService < ApplicationService
|
||||
end
|
||||
|
||||
$redis_cache.zscore(project_rank_key, @project_id)
|
||||
|
||||
# 设置过期时间(一个月)
|
||||
$redis_cache.expireat(project_rank_key, (@rank_date+30.days).to_time.to_i)
|
||||
$redis_cache.expireat(project_rank_statistic_key, (@rank_date+30.days).to_time.to_i)
|
||||
end
|
||||
end
|
||||
@@ -115,5 +115,9 @@ class Cache::V2::UserDateRankService < ApplicationService
|
||||
$redis_cache.zadd(user_rank_key, score-300, @user_id) if score > 300
|
||||
|
||||
$redis_cache.zscore(user_rank_key, @user_id)
|
||||
|
||||
# 设置过期时间(一个月)
|
||||
$redis_cache.expireat(user_rank_key, (@rank_date+30.days).to_time.to_i)
|
||||
$redis_cache.expireat(user_date_statistic_key, (@rank_date+30.days).to_time.to_i)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user