add: cache service

This commit is contained in:
2021-10-25 16:57:11 +08:00
parent 401798ebdd
commit f9bb74aba4
9 changed files with 844 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
class CacheAsyncResetJob < ApplicationJob
queue_as :cache
def perform(type, id, params={})
case type
when "owner_common_service"
Cache::V2::OwnerCommonService.new(id, params).call
when "platform_statistic_service"
Cache::V2::PlatformStatisticService.new(params).call
when "project_common_service"
Cache::V2::ProjectCommonService.new(id, params).call
when "user_statistic_service"
Cache::V2::PlatformStatisticService.new(id, params).call
end
end
end