-
由 Vasilii Iakliushin 创作于
Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/387978 **Problem** Sometimes we provide a `ProjectPresenter` object to the CacheService. Because we use `object.class.name` for the Redis key generation, it leads to duplicated keys problem when Project and ProjectPresenter objects generate different keys. **Solution** * Extract CacheKey generation logic into a separate class * Use `is_a?` (via case statement) to identify object type Changelog: performance
由 Vasilii Iakliushin 创作于Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/387978 **Problem** Sometimes we provide a `ProjectPresenter` object to the CacheService. Because we use `object.class.name` for the Redis key generation, it leads to duplicated keys problem when Project and ProjectPresenter objects generate different keys. **Solution** * Extract CacheKey generation logic into a separate class * Use `is_a?` (via case statement) to identify object type Changelog: performance
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。