diff options
author | Stan Hu <stanhu@gmail.com> | 2019-09-10 20:38:42 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-09-10 20:38:42 +0300 |
commit | 4bcde77f66d94696b204b141ad5a38bf127a5215 (patch) | |
tree | 1d98276609bbc63c5c309c4ae2c52bdbe95bc487 /app | |
parent | 0498ec89a1b44caad91603215d1ea96aaa4e1eb8 (diff) | |
parent | 034f0340a3e5c4c593916526246fccf0737ab0e3 (diff) |
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.rb | 4 |
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 |