class AsyncCache::Workers::ActiveJobWorker
Public Class Methods
clear()
click to toggle source
# File lib/async_cache/workers/active_job.rb, line 14 def self.clear raise NotImplementedError, 'ActiveJob does not support clearing queues' end
enqueue_async_job(key:, version:, expires_in:, block:, arguments:)
click to toggle source
# File lib/async_cache/workers/active_job.rb, line 18 def self.enqueue_async_job(key:, version:, expires_in:, block:, arguments:) self.perform_later key, version, expires_in, arguments, block end
has_workers?()
click to toggle source
# File lib/async_cache/workers/active_job.rb, line 8 def self.has_workers? # ActiveJob doesn't provide a way to see if worker processes are # running so we just assume that they are true end