blog podcast

Caching in Quarkus

Caching in itself doesn’t feel like a very complicated problem. You make some request, you save the result, and at some point you clear it again. Everytime I’ve had to use caching in the past though, I’ve always found the libraries more clunky and invasive than I’ve felt that they need to be.

Today, for the first time, I found a caching solution that was really all batteries included. The caching solution they support in Quarkus called Caffeine is really nice. The way it integrates into quarkus as well was just pure plug and play bliss. Read about it here.

Code of the Day

    @CacheResult( cacheName = "foo")
    fun getFoo(
        bar: String
        ): Foo {

        }

See? Pure joy.