Skip to content

Draft: Migrate Redis keys for repository to the structured format

What does this MR do and why?

Contributes to #383457

Problem

We don't have a consistency in terms of Redis key format, it does not allow us to effectively search and analyze Redis keys.

Solution

This change is a first step to migrate a subset of Redis cache keys for RepositoryCache to the structured format.

It's released behind the feature flag and it will be incrementaly rolled out.

Code and tests were copied from RepositoryCache. After migration is done, we can remove old classes.

How to set up and validate locally

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

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports