Use Gitlab::Redis::SharedState in Importers
What does this MR do and why?
As per #429461 (closed) we're starting to use Gitlab::Redis::SharedState for our importers.
We're using Gitlab::Redis::SharedState for writing purposes, and Gitlab::Redis::Cache for reading.
Screenshots or screen recordings
N/A
How to set up and validate locally
note: a quick way of testing locally:
- Execute the Rails console using
bin/rails consoleand cache certain values using methods like.writeor.incrementfromGitlab::Cache::Import::Cachingmodule. - Verify that the values are correctly cached using
Gitlab::Cache::Import::Caching.read. - Switch to this branch.
- Reassure that the cached values remain unchanged.
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.
Related to #429461 (closed)
Edited by Bojan Marjanovic