Commit 6b3f6c9f authored by Kamil Trzcinski's avatar Kamil Trzcinski Committed by Z.J. van de Weg

Raise exception on invalid pipeline cache

parent 5478ff6d
......@@ -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
......
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