Skip to content

Commit 8c99f5f

Browse files
Support for blind passthrough in redis-namespace
1 parent 7e7cf11 commit 8c99f5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/resque/failure/multiple_with_retry_suppression.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def retrying?
151151
def redis_key_exists?(key)
152152
if Resque.redis.respond_to?(:exists?)
153153
will_handle_namespaced_exists = Resque.redis.try(:namespace).blank? ||
154-
Redis::Namespace::COMMANDS.include?(:exists?)
154+
::Redis::Namespace::COMMANDS.include?(:exists?)
155155
Resque.redis.exists?(will_handle_namespaced_exists ? key : "#{Resque.redis.namespace}:#{key}")
156156
else
157157
![false, 0].include?(Resque.redis.exists(key) || false)

0 commit comments

Comments
 (0)