mixer2-cacheable

cache wrapper for Mixer2Engine

Лицензия

Лицензия

Группа

Группа

org.mixer2
Идентификатор

Идентификатор

mixer2-cacheable
Последняя версия

Последняя версия

1.0.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

mixer2-cacheable
cache wrapper for Mixer2Engine
Ссылка на сайт

Ссылка на сайт

http://mixer2.org/
Организация-разработчик

Организация-разработчик

Project Mixer2
Система контроля версий

Система контроля версий

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

Скачать mixer2-cacheable

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.mixer2 : mixer2 Необязательный jar 1.2.12
javax.cache : cache-api Необязательный jar 0.8

test (4)

Идентификатор библиотеки Тип Версия
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

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.0.4
1.0.1