mixer2-cacheable

cache wrapper for Mixer2Engine

License

License

GroupId

GroupId

org.mixer2
ArtifactId

ArtifactId

mixer2-cacheable
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

mixer2-cacheable
cache wrapper for Mixer2Engine
Project URL

Project URL

http://mixer2.org/
Project Organization

Project Organization

Project Mixer2
Source Code Management

Source Code Management

https://github.com/nabedge/mixer2-cacheable

Download mixer2-cacheable

How to add to project

<!-- https://jarcasting.com/artifacts/org.mixer2/mixer2-cacheable/ -->
<dependency>
    <groupId>org.mixer2</groupId>
    <artifactId>mixer2-cacheable</artifactId>
    <version>1.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.mixer2/mixer2-cacheable/
implementation 'org.mixer2:mixer2-cacheable:1.0.4'
// https://jarcasting.com/artifacts/org.mixer2/mixer2-cacheable/
implementation ("org.mixer2:mixer2-cacheable:1.0.4")
'org.mixer2:mixer2-cacheable:jar:1.0.4'
<dependency org="org.mixer2" name="mixer2-cacheable" rev="1.0.4">
  <artifact name="mixer2-cacheable" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.mixer2', module='mixer2-cacheable', version='1.0.4')
)
libraryDependencies += "org.mixer2" % "mixer2-cacheable" % "1.0.4"
[org.mixer2/mixer2-cacheable "1.0.4"]

Dependencies

compile (2)

Group / Artifact Type Version
org.mixer2 : mixer2 Optional jar 1.2.12
javax.cache : cache-api Optional jar 0.8

test (4)

Group / Artifact Type Version
junit : junit jar 4.11
commons-codec : commons-codec jar 1.8
commons-lang : commons-lang jar 2.6
commons-io : commons-io jar 2.4

Project Modules

There are no modules declared in this project.

mixer2-cacheable

Install

for maven pom.xml .

<dependency>
    <groupId>org.mixer2</groupId>
    <artifactId>mixer2</artifactId>
    <version>1.2.22</version><!-- or higher  -->
</dependency>
<dependency>
    <groupId>org.mixer2</groupId>
    <artifactId>mixer2-cacheable</artifactId>
    <version>1.0.2</version><!-- or higher  -->
</dependency>

for manual management of jar .

http://mixer2.org/dist/

Usage

sample for manual instantiation code.

before:

Mixer2Engine mixer2Engine = new Mixer2Engine();

after:

Mixer2Engine mixer2Engine = new CacheableMixer2Engine();

sample for Spring DI container configuration xml.

before:

<bean
    id="mixer2Engine"
    class="org.mixer2.Mixer2Engine"
    scope="singleton" />

after:

<bean
    id="mixer2Engine"
    class="org.mixer2.cacheable.CacheableMixer2Engine"
    scope="singleton" />

In default, Engine has SimpleCache instance that uses CuncurrentHashMap as cache store.

To use custom cache instance, you should implement javax.cache.Cache interface and call CacheableMixer2Engine#setCache(yourCache) .

Mixer2

for detail, see javadoc and mixer2.org

Versions

Version
1.0.4
1.0.1