add: callback cache

This commit is contained in:
2021-10-26 15:22:42 +08:00
parent 91f1f4090f
commit 69c87fd5a4
14 changed files with 343 additions and 51 deletions

View File

@@ -1,7 +1,7 @@
class CacheAsyncResetJob < ApplicationJob
class CacheAsyncSetJob < ApplicationJob
queue_as :cache
def perform(type, id=nil, params={})
def perform(type, params={}, id=nil)
case type
when "platform_statistic_service"
Cache::V2::PlatformStatisticService.new(params).call