Skip to content

bootique/bootique-jcache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build test deploy Maven Central

bootique-jcache

Integration of JCache caching API with Bootique. Provides an injectable CacheManager.

For additional help/questions about this example send a message to Bootique forum.

Setup

Add bootique-jcache to your build tool

Maven

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>io.bootique.bom</groupId>
            <artifactId>bootique-bom</artifactId>
            <version>3.0-RC1</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

<dependency>
    <groupId>io.bootique.jcache</groupId>
    <artifactId>bootique-jcache</artifactId>
</dependency>

Example Project

bootique-jcache does not bundle a JCache provider. You will need to explicitly include a provider of your choice on the classpath of your application, such as EhCache, Caffeine, Hazelcast, etc. You can find the details of different provider integrations in the examples.

Providers are chosen either implicitly by locating the provider class in META-INF/services/javax.cache.spi.CachingProvider in the application dependencies (a similar mechanism is used to locate Bootique's own modules), or taken from configuration:

jcache:
   provider: org.ehcache.jsr107.EhcacheCachingProvider

About

JCache integration for Bootique

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Languages