require 'sidekiq'

require 'mforwd'

Sidekiq.configure_client do |config|
  config.redis = { :namespace => 'x', :size => 1 }
end

Sidekiq.configure_server do |config|
  config.redis = { :namespace => 'x' }
end

class MForwd::Worker
  include Sidekiq::Worker

  def perform(how_hard="super hard", how_long=1)
    sleep how_long
    puts "Workin' #{how_hard}"
  end
end

Add Worker class includes Sidekiq::Worker
Add Worker class includes Sidekiq::Worker
