WSO2 Carbon Caching - Distribution


Лицензия

Лицензия

Категории

Категории

Caching Данные
Группа

Группа

org.wso2.carbon.caching
Идентификатор

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

wso2carbon-caching
Последняя версия

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

1.1.2
Дата

Дата

Тип

Тип

pom
Описание

Описание

WSO2 Carbon Caching - Distribution
WSO2 Carbon Caching - Distribution
Ссылка на сайт

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

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

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

WSO2

Скачать wso2carbon-caching

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

<!-- https://jarcasting.com/artifacts/org.wso2.carbon.caching/wso2carbon-caching/ -->
<dependency>
    <groupId>org.wso2.carbon.caching</groupId>
    <artifactId>wso2carbon-caching</artifactId>
    <version>1.1.2</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/org.wso2.carbon.caching/wso2carbon-caching/
implementation 'org.wso2.carbon.caching:wso2carbon-caching:1.1.2'
// https://jarcasting.com/artifacts/org.wso2.carbon.caching/wso2carbon-caching/
implementation ("org.wso2.carbon.caching:wso2carbon-caching:1.1.2")
'org.wso2.carbon.caching:wso2carbon-caching:pom:1.1.2'
<dependency org="org.wso2.carbon.caching" name="wso2carbon-caching" rev="1.1.2">
  <artifact name="wso2carbon-caching" type="pom" />
</dependency>
@Grapes(
@Grab(group='org.wso2.carbon.caching', module='wso2carbon-caching', version='1.1.2')
)
libraryDependencies += "org.wso2.carbon.caching" % "wso2carbon-caching" % "1.1.2"
[org.wso2.carbon.caching/wso2carbon-caching "1.1.2"]

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
org.osgi : org.osgi.core jar 6.0.0
org.wso2.carbon : org.wso2.carbon.launcher jar 5.1.0
org.wso2.carbon » org.wso2.carbon.kernel.feature zip 5.1.0
org.wso2.carbon : org.wso2.carbon.runtime.feature zip 5.1.0
org.wso2.carbon.caching : org.wso2.carbon.caching.feature zip 1.1.2

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

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

JSR 107 (JCache) Implementation for WSO2 Carbon

This Carbon component implements JCache 1.0 for Carbon.

For details about JCache, see the specification

Usage

Example usage:

Creating a Cache

CachingProvider provider = cachingService.getCachingProvider();
CacheManager cacheManager = provider.getCacheManager();
        
//configure the cache
MutableConfiguration<String, String> config = new MutableConfiguration<>();
config.setStoreByValue(true)
        .setTypes(String.class, String.class)
        .setExpiryPolicyFactory(AccessedExpiryPolicy.factoryOf(cacheExpiry))
        .setStatisticsEnabled(false);

//create the cache
Cache<String, String> = cacheManager.createCache("myCache", config);

Note that cachingService in the above code segment is the org.wso2.carbon.caching.CarbonCachingService OSGi service

Getting the cache and performing operations on it

String cacheName = "myCache";
String key = "k";
String value = "v";
Cache<String, String> cache = cacheManager.getCache(cacheName, String.class, String.class);

// Add to cache
cache.put(key, value);

// Get from cache
String val = cache.get(key);

// Remove from cache
cache.remove(key);

For full source code, see caching sample.

For more details about the JCache APIs, please refer to the JCache Java docs

org.wso2.carbon.caching

WSO2

Welcome to the WSO2 source code! For info on working with the WSO2 repositories and contributing code, click the link below.

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

Версия
1.1.2
1.1.1
1.1.0
1.0.0
1.0.0-m1