Raise exception on invalid pipeline cache

This commit is contained in:
Kamil Trzcinski 2017-05-20 23:50:22 +02:00 committed by Z.J. van de Weg
parent 5478ff6dc2
commit 6b3f6c9f93
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ module Gitlab
end
def redis_key(key)
raise 'Invalid key' unless Gitlab::EtagCaching::Router.match(key)
"#{REDIS_NAMESPACE}#{key}"
end
end