Commit b7cff7f5 authored by Robert May's avatar Robert May Committed by Stan Hu

No need to glob keys again

parent 474ed146
...@@ -17,7 +17,7 @@ module Gitlab ...@@ -17,7 +17,7 @@ module Gitlab
def expire(*keys) def expire(*keys)
with do |redis| with do |redis|
keys = keys.map { |key| cache_key(key) } keys = keys.map { |key| cache_key(key) }
unlink_or_delete(redis, *keys) unlink_or_delete(redis, keys)
end end
end end
...@@ -55,7 +55,7 @@ module Gitlab ...@@ -55,7 +55,7 @@ module Gitlab
Gitlab::Redis::Cache.with(&blk) # rubocop:disable CodeReuse/ActiveRecord Gitlab::Redis::Cache.with(&blk) # rubocop:disable CodeReuse/ActiveRecord
end end
def unlink_or_delete(redis, *keys) def unlink_or_delete(redis, keys)
if Feature.enabled?(:repository_set_cache_unlink, default_enabled: true) if Feature.enabled?(:repository_set_cache_unlink, default_enabled: true)
redis.unlink(*keys) redis.unlink(*keys)
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment