summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-09-10 17:38:42 +0000
committerStan Hu <stanhu@gmail.com>2019-09-10 17:38:42 +0000
commit4bcde77f66d94696b204b141ad5a38bf127a5215 (patch)
tree1d98276609bbc63c5c309c4ae2c52bdbe95bc487 /app
parent0498ec89a1b44caad91603215d1ea96aaa4e1eb8 (diff)
parent034f0340a3e5c4c593916526246fccf0737ab0e3 (diff)
downloadgitlab-ce-4bcde77f66d94696b204b141ad5a38bf127a5215.tar.gz
Merge branch '64251-redis-set-cache-mark-2' into 'master'
Re-introduce the Redis set cache for branch and tag names - but don't enable it yet See merge request gitlab-org/gitlab-ce!32412
Diffstat (limited to 'app')
-rw-r--r--app/models/repository.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index 5cb4b56a114..e5a83366776 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -1134,6 +1134,10 @@ class Repository
@cache ||= Gitlab::RepositoryCache.new(self)
end
+ def redis_set_cache
+ @redis_set_cache ||= Gitlab::RepositorySetCache.new(self)
+ end
+
def request_store_cache
@request_store_cache ||= Gitlab::RepositoryCache.new(self, backend: Gitlab::SafeRequestStore)
end