Skip to main content

Installation

Xanthic BOM

The cache-bom will ensure that all xanthic-components in your project use the same version. See our snippets below on how to include xanthic in your project.

Usage: For Library Developers

You will want to include the xanthic-core to code against this straightforward API and let users can choose whichever backing implementation they prefer!

Step 1: add the bom to your project:

build.gradle
dependencies {
api platform('io.github.xanthic.cache:cache-bom:0.6.0')
}

Step 2: add the cache-core dependency:

build.gradle
dependencies {
api 'io.github.xanthic.cache:cache-core'
}

Usage: For Application Developers

As user of a library that is using xanthic, you will only need to specify the bom and pick your one or more implementations of your choice.

Step 1: add the bom to your project:

build.gradle
dependencies {
implementation platform('io.github.xanthic.cache:cache-bom:0.6.0')
}

Step 2: add a cache-implementation of your choice:

See all supported implementations here

build.gradle
dependencies {
implementation 'io.github.xanthic.cache:cache-provider-caffeine3'
}