Contributing
Getting started
- Fork the repository on GitHub.
- Clone your fork and open the project in IntelliJ IDEA.
- Start local services (MongoDB on 27017, Redis on 6379):
cd example docker-compose up -d - Run the example to verify your environment:
./gradlew :example:run
Running tests
./gradlew test
Each cache module has a contract test (CacheClientContractTest) that all CacheClient implementations must pass.
Adding a cache backend
- Create a new module
kachecontroller-cache-<name>/. - Implement
CacheClientand extendCacheClientContractTest. - Add the module to
settings.gradle.kts. - Open a pull request with a description of the backend and any infrastructure requirements.
Pull request guidelines
- Keep each PR focused on one change.
- Include or update tests where relevant.
- Run
./gradlew buildbefore opening a PR. - Reference any related issue in the PR description.