Skip to content

Instantly share code, notes, and snippets.

@rajeshkp
Forked from mlangenberg/sidekiq.rb
Created September 14, 2013 06:52
Show Gist options
  • Save rajeshkp/6559460 to your computer and use it in GitHub Desktop.
Save rajeshkp/6559460 to your computer and use it in GitHub Desktop.
redis_config = { :namespace => 'sidekiq', :url => YAML.load_file("#{Rails.root}/config/redis.yml")[Rails.env] }
Sidekiq.configure_server do |config|
config.redis = redis_config
end
Sidekiq.configure_client do |config|
config.redis = redis_config
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment