Make statCache more modular
- 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
Assessment
This issue has not been assessed yet.