Questions tagged [jcache]

JCACHE :JSR 107- Java Temporary Caching API. Specifies API and semantics for temporary, in-memory caching of Java objects, including object creation, shared access, spooling, invalidation, and consistency across JVM's. source: https://jcp.org/en/jsr/detail?id=107

Introduction

Cache is the API being defined in JSR107. It defines a standard Java Caching API for use by developers and a standard SPI ("Service Provider Interface") for use by implementers.

Maven Dependency:

<dependency>
    <groupId>javax.cache</groupId>
    <artifactId>cache-api</artifactId>
    <version>1.0.0</version>
</dependency>

Gradle dependency:

compile 'javax.cache:cache-api:1.0.0'

The specification is available online.

184 questions
0
votes
2 answers

Is it possible to have common xml configuration for all Cache provider vendors for jsr107

We need to have common XML configuration parameters(like timetolive) for Jcache configuration. We are using EhCache for Development and might be using some other Jsr107 compliant cache provider, like Infinispan, in other environment. is it possible…
YogeshK
  • 47
  • 11
0
votes
1 answer

JCache with EHCache implementation

Does EHCache implemenation of JCache supports Distributed caching feature? My requirement is Distributed Client-Server Cache: Multiple cache (clustered) nodes, collaborating in a distributed fashion and executing in isolation from the client…
stallapp
  • 49
  • 2
  • 5
0
votes
2 answers

Single Java Cache for multiple Application Server

We got multiple Application Server behind a Reverse Proxy. We want a single cache on another host which all Application Servers can easily use, thus the cache has to have some kind of network support. Furthermore the setup should be easy probably…
Christian
  • 3,503
  • 1
  • 26
  • 47
0
votes
1 answer

Hazelcast cache implementation in my application

Below is my scenario from Application perspective. We have 2 applications (.war) files will be running in a same instance of Application server (mostly Tomcat 8), In production we may deploy App1 on 100 servers and App2 only on 50 server out of…
Shantanoo K
  • 765
  • 5
  • 15
  • 43
0
votes
1 answer

WSO2 Identity Server 5.0.0 clustering with Oracle Coherence

Halo everybody (maybe Asela? :), Can anyone guide me how can I implement Oracle Coherence as a Cache provider with WSO2 Identity Server 5.0.0 clustered using with WSO2 ELB? I found some very useful links on that topic, from which I consider this one…
Josef Bureš
  • 125
  • 1
  • 11
0
votes
1 answer

Manage Cache content remotely via JCache

I have a requirement where I want to view, modify the content of or add new entry to the cache entries. I am using JCache API to and EHCache as the provider. I don't want to write any wrapper API to expose the cache contents. I am wondering is…
param83
  • 453
  • 2
  • 6
  • 17
0
votes
2 answers

Getting all the Cache Names

I am developing a REST application to read all the caches in a Cluster that uses J Cache with Hazel cast 3.3.3 This application will create another hazel cast node when I call the following line in the application: cacheManager=…
Shenal
  • 202
  • 5
  • 21
0
votes
2 answers

How to view content of Cache in JCache

There are options to read the cache by using keys. Like this : Collection userIds = context.getUserDao().allUserIds(); for (Integer userId : userIds) { User user = cache.getUserCache().get(userId); …
Shenal
  • 202
  • 5
  • 21
0
votes
1 answer

Memcached vs Memcache vs Jcache

Please don't mark this question as a duplicate. I read the previous questions, but I am still unable to understand it. I am currently into a project designed in Java which uses MongoDB for persistence. But due to some performance issues with it, I…
Java Manz
  • 41
  • 2
  • 5
0
votes
1 answer

Why class-based cache entries gone after GridGain node stopped?

Code: public static class Oya { String name; public Oya(String name) { super(); this.name = name; } /* (non-Javadoc) * @see java.lang.Object#toString() */ @Override public String toString() { …
Hendy Irawan
  • 20,498
  • 11
  • 103
  • 114
0
votes
1 answer

Spring cache not working with EHCache+JCache

I'm trying to integration the ehcache implementation of jcache to work with spring. So I have a facade defined like this: @Component(value = "sampleFacade") @CacheDefaults(cacheName = "default") public class SampleFacadeImpl implements…
Petar Tahchiev
  • 4,336
  • 4
  • 35
  • 48
0
votes
1 answer

cache ok but cache entry disappeared

I use JSR 107 JCache in GAE to temporarily store data captured from web and write it to datastore at certain interval (10 mins). My app only use one cache. Most of the time it works well. Once in a while (5-6 times out of 4,000 per day) one of the…
senderj
  • 400
  • 1
  • 9
0
votes
1 answer

What is the correct settings to enable JPA Level 2 Caching?

I am trying to figure out how to configure JPA 2.0 to use Memcache as the Level 2 cache in Google App Engine 1.8.7. I have found instructions that are a year old and they don't work now. Here is the error(s) that I am getting: When I use
user177800
0
votes
2 answers

JCache API usage with invalidation clustered cache

Clustered invalidation key-value caches are sending only remove commands over the network. When the value of a key is changed or removed on one node a remove command is sent with that key to every other node so they need to get that data from a…
Balazs Zsoldos
  • 6,036
  • 2
  • 23
  • 31
0
votes
1 answer

Configure JCache implementation in Spring

Looking at the Ehcahce implementation of net.sf.cache.JS107, I am trying to achieve the following code snippet to produce the JCache implementation as a Spring managed bean.. Ehcache Ehcache = new net.sf.ehcache.Cache(...); …
totalcruise
  • 1,343
  • 2
  • 13
  • 25
1 2 3
12
13