You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- class CacheAsyncResetJob < ApplicationJob
- queue_as :cache
-
- def perform(type, id=nil)
- case type
- when "platform_statistic_service"
- Cache::V2::PlatformStatisticService.new.reset
- when "project_common_service"
- Cache::V2::ProjectCommonService.new(id).reset
- when "owner_common_service"
- Cache::V2::OwnnerCommonService.new(id).reset
- when "user_statistic_service"
- Cache::V2::UserStatisticService.new(id).reset
- end
- end
- end
|