The triava project contains several of trivago's core libraries for Java-based projects: caching, collections, annotations, concurrency libraries and more.

TriavaCache (short: tcache) is fully JCache / JSR107 (Java Caching) compliant. More information on tcache:


Licensed under the Apache License, Version 2.0


To start, look at the examples folder. Further interesting examples are in the tcache unit test folder and util unit test folder.

Usage in Maven: pom.xml

triava is available from Maven Central


Usage in Gradle: build.gradle

dependencies {
    compile 'com.trivago:triava:2.0.1'


See Changelog


triava requires Java 8 and depends on the JSR107 API javax.cache:cache-api:1.0.0. Dependencies are resolved by Maven. The following will build everything, including Javadoc and a source jar:

mvn package

This will create three artifacts in the target/ folder:

Maintainers can upload new versions to Maven Central Staging:

Before uploading a new version, you should:


Have a look at the examples folder.