Chapter 28. JCache integration

Table of Contents

Description
Including in a project
Usage

Description

This module allows to integrate any JCache (JSR 107) compatible caching provider with Cayenne.

Including in a project

Maven

<dependency>
    <groupId>org.apache.cayenne</groupId>
    <artifactId>cayenne-jcache</artifactId>
    <version>4.0.B2</version>
</dependency>

Gradle

compile 'org.apache.cayenne:cayenne-jcache:4.0.B2'

Usage

To use JCache provider in your app you need to include this module and caching provider libs (e.g. Ehcache). You can provide own implementation of org.apache.cayenne.jcache.JCacheConfigurationFactory to customize cache configuration if required.

For advanced configuration and management please use provider specific options and tools.

Note

You can read about using cache in Cayenne in this chapter.

You may else be interested in cache invalidation extension.