We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e7cf11 commit 8c99f5fCopy full SHA for 8c99f5f
1 file changed
lib/resque/failure/multiple_with_retry_suppression.rb
@@ -151,7 +151,7 @@ def retrying?
151
def redis_key_exists?(key)
152
if Resque.redis.respond_to?(:exists?)
153
will_handle_namespaced_exists = Resque.redis.try(:namespace).blank? ||
154
- Redis::Namespace::COMMANDS.include?(:exists?)
+ ::Redis::Namespace::COMMANDS.include?(:exists?)
155
Resque.redis.exists?(will_handle_namespaced_exists ? key : "#{Resque.redis.namespace}:#{key}")
156
else
157
![false, 0].include?(Resque.redis.exists(key) || false)
0 commit comments