Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-22Enable frozen string for lib/gitlab/*.rbgfyoung
2018-09-28Remove send-in-send for safety and readabilityMichael Kozono
I attempted to refactor so that the caller of `wrap_method` passes in a block, rather than a method name, but I was unsuccessful. I kept getting the following error: NoMethodError: undefined method `cache_method_output' for Repository:Class If you can figure this out, then feel free to dry up these class methods again without doing a send-within-a-send.
2018-09-28Expire RequestStore cache properlyMichael Kozono
2018-09-28Cache `Repository#exists?` false in RequestStoreMichael Kozono
* Only truthy values are cached in Redis. * All values are cached in RequestStore and in an instance variable.
2018-09-28Extract `Repository.memoize_method` methodMichael Kozono
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-06-29Expire correct method caches after HEAD changedImre Farkas
2018-03-07Refactor RepositoryCache to make it usable in other classesAlejandro Rodríguez