|
|
|
@@ -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 |