Commit b9892e9e authored by Sean McGivern's avatar Sean McGivern

Merge branch 'es-cache-unlink' into 'master'

Perform redis UNLINK instead of DEL in ElasticsearchEnabledCache

See merge request gitlab-org/gitlab!38410
parents 1bb93eff b98f7c95
......@@ -55,7 +55,7 @@ module Gitlab
#
# @param type [Symbol] the type of resource, `:project` or `:namespace`
def delete(type)
Gitlab::Redis::Cache.with { |redis| redis.del(redis_key(type)) }
Gitlab::Redis::Cache.with { |redis| redis.unlink(redis_key(type)) }
end
private
......
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