We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37db308 commit e88c176Copy full SHA for e88c176
lib/resque.rb
@@ -101,8 +101,9 @@ def coder
101
# create a new one.
102
def redis
103
return @redis if @redis
104
- self.redis = Redis.respond_to?(:connect) ? Redis.connect(:thread_safe => true) : "localhost:6379"
105
- self.redis
+ redis = Redis.respond_to?(:connect) ? Redis.connect(:thread_safe => true) : "localhost:6379"
+ create_pool(redis)
106
+ @redis
107
end
108
109
def pool
0 commit comments