The code powering m.abunchtell.com https://m.abunchtell.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

17 行
323 B

  1. # frozen_string_literal: true
  2. namespace = ENV.fetch('REDIS_NAMESPACE') { nil }
  3. redis_params = { url: ENV['REDIS_URL'] }
  4. if namespace
  5. redis_params [:namespace] = namespace
  6. end
  7. Sidekiq.configure_server do |config|
  8. config.redis = redis_params
  9. end
  10. Sidekiq.configure_client do |config|
  11. config.redis = redis_params
  12. end