Skip to content

Use Gitlab::Redis::ClusterUtil in redis cache store patch

Sylvester Chin requested to merge sc1-refactor-redis-cluster-util-usage into master

What does this MR do and why?

This is a follow-up from !151875 (merged) to use Gitlab::Redis::ClusterUtil in redis cache store patch. This re-uses the pipeline logic implemented in ClusterUtil and applies the same batch limit across the application.

Note that the batch limit is uniform but we hard code it in ClusterUtil, making this a good chance to refactor it.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request reports