GitLab Bot
5a80b10a84
Add latest changes from gitlab-org/gitlab@master
2021-03-27 00:09:34 +00:00
GitLab Bot
6e495b4e91
Add latest changes from gitlab-org/gitlab@master
2021-02-01 09:09:28 +00:00
GitLab Bot
07e23c70f1
Add latest changes from gitlab-org/gitlab@master
2020-09-06 12:08:40 +00:00
GitLab Bot
2f5731cf53
Add latest changes from gitlab-org/gitlab@master
2020-08-19 18:10:34 +00:00
GitLab Bot
7a1895c74a
Add latest changes from gitlab-org/gitlab@master
2020-08-11 18:10:06 +00:00
GitLab Bot
c59765a50a
Add latest changes from gitlab-org/gitlab@master
2020-06-24 18:09:03 +00:00
GitLab Bot
87af6f2e05
Add latest changes from gitlab-org/gitlab@master
2020-03-16 21:09:21 +00:00
GitLab Bot
43e3dc2f95
Add latest changes from gitlab-org/gitlab@master
2020-02-12 18:09:21 +00:00
Nick Thomas
07323f44b7
Revert "Revert "Cache branch and tag names as Redis sets""
...
This reverts commit c6ccc07f48
.
2019-09-10 13:45:21 +01:00
Nick Thomas
c6ccc07f48
Revert "Cache branch and tag names as Redis sets"
...
This reverts commit 0eff75fa2b
.
2019-08-29 18:04:52 +01:00
Thong Kuah
8c42a0eac0
Add frozen_string_literal to lib part 2
...
Using the sed script from
https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-08-23 00:15:24 +12:00
Nick Thomas
0eff75fa2b
Cache branch and tag names as Redis sets
...
This allows us to check inclusion for the *_exists? methods without
downloading the full list of branch names, which is over 100KiB in size
for gitlab-ce at the moment.
2019-08-16 15:41:29 +01:00
Michael Kozono
3640292bf2
Cache `Repository#exists?` false in RequestStore
...
* Only truthy values are cached in Redis.
* All values are cached in RequestStore and in an instance variable.
2018-09-27 18:22:37 -07:00
Michael Kozono
d9c4ebc5a0
Extract `Repository.memoize_method` method
...
And reuse `Gitlab::Utils::StrongMemoize`.
There is a subtle behavior change required to reuse StrongMemoize in
this case. The early fallback check now occurs *before* reading the
memoized value instead of after.
I think this is fine since a memoized value should only exist if
`exists?` is also already memoized as `true`.
2018-09-27 15:16:09 -07:00
Imre Farkas
d4d6528c86
Expire correct method caches after HEAD changed
2018-06-29 17:41:57 +02:00
Alejandro Rodríguez
5171e2f3d4
Refactor RepositoryCache to make it usable in other classes
2018-03-06 21:12:29 -03:00