pingcap / pingcap/tidb

Make statCache more modular

Open
#44,861 0 comments 1 reaction 0 assignees View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

Currently, the statCache module in our project is tightly coupled with other modules, making it difficult to modify and test. To improve this, I suggest that we make the statCache module more modular.
By modularizing the statCache module, we can easily modify and test its functionality without affecting other parts of the codebase. This will make it easier to maintain and improve the module over time.
Some possible ways to modularize the statCache module include:

- Separating the cache logic from the file system logic, so that the cache can be used with other file systems.

- Using a pluggable cache implementation, so that different caching strategies can be used depending on the use case.

Overall, I believe that modularizing the statCache module will help us to write more maintainable and scalable code.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.