We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ac416e commit 5f3b39cCopy full SHA for 5f3b39c
lib/resque.rb
@@ -65,7 +65,7 @@ def coder
65
# create a new one.
66
def redis
67
return @redis if @redis
68
- self.redis = Redis.respond_to?(:connect) ? Redis.connect : "localhost:6379"
+ self.redis = Redis.respond_to?(:connect) ? Redis.connect(:thread_safe => true) : "localhost:6379"
69
self.redis
70
end
71
0 commit comments