Add support for Gitlab::Redis::Cache in MultiStore
What does this MR do and why?
This MR adds support for redis operations performed by Gitlab::Redis::Cache
and Rails.cache
(which is using redis-cache
) into Gitlab::Redis::MultiStore
. We need to transit from redis-cache to a distributed/cluster setup and will use MultiStore to perform the transition.
See gitlab-com/gl-infra/scalability#1992 (closed)
This MR will be kept in draft for now. I may want to add the Redis Cluster/Distributed with this in a single MR. The extra functions will help if MultiStore is used for feature-flag migration since operations like expire
are missing. Perhaps this MR should be a standalone with the sole purpose of adding more supported operations to MultiStore?
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
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.
-
I have evaluated the MR acceptance checklist for this MR.