add: user common info cache service

This commit is contained in:
2021-10-25 17:23:17 +08:00
parent f9bb74aba4
commit fa476732e5
5 changed files with 28 additions and 10 deletions

View File

@@ -1,10 +1,8 @@
class CacheAsyncResetJob < ApplicationJob
queue_as :cache
def perform(type, id, params={})
def perform(type, id)
case type
when "owner_common_service"
Cache::V2::OwnerCommonService.new(id).reset
when "platform_statistic_service"
Cache::V2::PlatformStatisticService.new.reset
when "project_common_service"