Introducing Kachecontroller(1.0.6)
funyin.github.io/KacheController/latest
Stop writing Cache‑Aside boilerplate in every Kotlin repository.
You know the drill:
➡️ Check cache.
➡️ On miss, query the DB.
➡️ Manually stuff the result into cache.
➡️ On update, remember to invalidate or refresh.
It’s repetitive, scattered across your business logic, and one forgotten invalidation away from serving stale data.
KacheController is a pluggable read‑through/write‑through cache layer for Kotlin.
Instead of you managing the cache, the cache layer manages itself:
🔹 Read miss? It automatically loads from your DB and populates the cache.
🔹 Write? It updates the DB and refreshes the cache in one atomic step.
🔹 Change backends? Swap Redis for in‑memory, or MongoDB for PostgreSQL, without touching a single line of your repository code.
Here’s the killer distinction:
Cache‑Aside forces you to write caching logic around your data access.
KacheController makes caching a transparent property of your data layer.
Feedback, stars, and contributions are genuinely welcome! 🙌
#C1FLMRTJA #Caching #Database
#C2YH04E3S #SoftwareEngineering