Commit 4ed4ff59 authored by Sean McGivern's avatar Sean McGivern

Use UNLINK to remove old repository set caches

When we write a repository set cache, we first remove the old key.
Repository set cache values (tag and branch names) can be very large, so
using UNLINK instead of DEL should be more efficient.
parent 4be41abb
...@@ -22,7 +22,7 @@ module Gitlab ...@@ -22,7 +22,7 @@ module Gitlab
with do |redis| with do |redis|
redis.multi do redis.multi do
redis.del(full_key) redis.unlink(full_key)
# Splitting into groups of 1000 prevents us from creating a too-long # Splitting into groups of 1000 prevents us from creating a too-long
# Redis command # Redis command
......
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