You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have use case where I'm trying to create a new model instance for an array of Redis hosts. I currently have this executing in a Sidekiq job, which relies on threads. I'm getting varying results of writes to each host. For example, I'll process 100 jobs and each host will not have the same number of updates. Is there any way to accomplish this with Ohm?
hosts = ['192.168.1.1', '192.168.1.2', '192.168.1.3','192.168.1.4']
hosts.each do |host|
Event.redis = Redic.new("redis://#{host}:6379")
Event.create :name => "Ohm Worldwide Conference 2031"
end
The text was updated successfully, but these errors were encountered:
I have use case where I'm trying to create a new model instance for an array of Redis hosts. I currently have this executing in a Sidekiq job, which relies on threads. I'm getting varying results of writes to each host. For example, I'll process 100 jobs and each host will not have the same number of updates. Is there any way to accomplish this with Ohm?
The text was updated successfully, but these errors were encountered: