Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/repository_set_cache.rb')
-rw-r--r--lib/gitlab/repository_set_cache.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/repository_set_cache.rb b/lib/gitlab/repository_set_cache.rb
index 33c7d96c45b..baf48fd0dc1 100644
--- a/lib/gitlab/repository_set_cache.rb
+++ b/lib/gitlab/repository_set_cache.rb
@@ -41,7 +41,7 @@ module Gitlab
smembers, exists = with do |redis|
redis.multi do |multi|
multi.smembers(full_key)
- multi.exists(full_key)
+ multi.exists?(full_key) # rubocop:disable CodeReuse/ActiveRecord
end
end
@@ -58,7 +58,7 @@ module Gitlab
full_key = cache_key(key)
with do |redis|
- exists = redis.exists(full_key)
+ exists = redis.exists?(full_key) # rubocop:disable CodeReuse/ActiveRecord
write(key, yield) unless exists
redis.sscan_each(full_key, match: pattern)