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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-28 18:08:03 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-28 18:08:03 +0300
commit59469a17821eda8a34d08b1e46584e902d1e963a (patch)
tree504eb7237ea7cadb589e0791fa243f7bf93237a7 /lib/gitlab/set_cache.rb
parente2b92514e3def8074c0855100632ebb9935d2a19 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/set_cache.rb')
-rw-r--r--lib/gitlab/set_cache.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/set_cache.rb b/lib/gitlab/set_cache.rb
index 30cd63e80c0..9fc7a44ec99 100644
--- a/lib/gitlab/set_cache.rb
+++ b/lib/gitlab/set_cache.rb
@@ -10,12 +10,12 @@ module Gitlab
@expires_in = expires_in
end
- def cache_key(key)
+ # NOTE Remove as part of https://gitlab.com/gitlab-org/gitlab/-/issues/331319
+ def old_cache_key(key)
"#{key}:set"
end
- # NOTE Remove as part of https://gitlab.com/gitlab-org/gitlab/-/issues/331319
- def new_cache_key(key)
+ def cache_key(key)
"#{cache_namespace}:#{key}:set"
end
@@ -25,7 +25,7 @@ module Gitlab
with do |redis|
keys_to_expire = keys.map { |key| cache_key(key) }
- keys_to_expire += keys.map { |key| new_cache_key(key) } # NOTE Remove as part of #331319
+ keys_to_expire += keys.map { |key| old_cache_key(key) } # NOTE Remove as part of #331319
Gitlab::Instrumentation::RedisClusterValidator.allow_cross_slot_commands do
redis.unlink(*keys_to_expire)