Questions tagged [jcs]

JCS is a distributed caching system written in java. It is intended to speed up applications by providing a means to manage cached data of various dynamic natures

JCS is a distributed caching system written in java. It is intended to speed up applications by providing a means to manage cached data of various dynamic natures. Like any caching system, JCS is most useful for high read, low put applications. Latency times drop sharply and bottlenecks move away from the database in an effectively cached system.

JCS

89 questions
2
votes
2 answers

Monitoring JCS Cache Usage

Our application is using JCS for caching frequently used data. I wanted to know if JCS maintains(or can generate) any statistics having information like cache usage, cache misses, etc? We recently decided to parallelise some job using…
SnoopyMe
  • 1,015
  • 1
  • 12
  • 21
2
votes
0 answers

How to run Coverage on SonarCloud using Maven Dependency instead of Source Code

I'm writing some Test Cases for Apache JCS. For University purposes i need to integrate these tests with Maven and SonarCloud, in particular i need to run tests without having in local the JCS source code, but "importing" the project via Maven…
sixpain
  • 342
  • 1
  • 5
  • 13
2
votes
2 answers

How to use JCS with Spring boot(Rest api)

I am new to Spring boot caching, as per my requirement i want to use JCS with spring boot(rest api). I have searched over the google but, haven't got much information about it. There is info available with java class. Does any one knows how to use…
Vishal Kawade
  • 449
  • 6
  • 20
2
votes
1 answer

JCS caching in groups - cached values are all null

Just began using commons-jcs-2.2-bin Was able to store objects of arbitrary complexity in default and named regions successfully (prior to using groups). In attempting to use groups I can see (using JCSAdmin.jsp) that my keys are all written - but…
Jack
  • 29
  • 5
2
votes
0 answers

Java caching System (JCS): Loading 300 MB Data into cache taking 2-3 hours

Scenario: I have 2-3 java hash maps (80lack entries: Around 300MB). I am loading it into JCS disk cache. It takes 2-3 hours to load it! Here is the code for loading the data! package example; public class Singleton { private static Singleton…
2
votes
1 answer

Clojure access Java Interface constants

I am trying to access the constants from this file in Clojure: public interface CacheConstants { /** This is the name of the config file that we will look for by default. */ String DEFAULT_CONFIG = "/cache.ccf"; /** Delimiter of a cache…
nha
  • 17,623
  • 13
  • 87
  • 133
2
votes
0 answers

JCS 1.3 - pre-load cache from disk

I am using Indexed disk cache and JCS 1.3. When I restart, the JCS cache does not seem to pre-load data, instead it does lazy initialization of the cache. On startup, the stats are as below: Region Name = triplet_set_1 HitCountRam = 0 HitCountAux =…
2
votes
1 answer

Error while using JCS : Failed to retrieve javax.sql:jdbc-stdext-2.0

While downloading JCS using Maven jcs jcs 1.3 Error : [WARNING] An error occurred during dependency resolution. Failed to retrieve…
Arun
  • 169
  • 1
  • 3
2
votes
1 answer

Java Caching System MaxLife vs MaxLifeSecond

I'm using Java Caching System (JCS - https://commons.apache.org/proper/commons-jcs/ ) I'd like to know the difference between MaxLife and MaxLifeSeconds MaxLife: If you specify that elements within a region are not eternal, then you can set the…
mycowan
  • 993
  • 8
  • 18
2
votes
1 answer

JCS CompositeCacheAttributes cannot be cast to ICompositeCacheAttributes

I am using JCS which I have used before in the same way without any problem. When the server starts up I am setting the cache properties manually CompositeCacheManager ccm = CompositeCacheManager.getUnconfiguredInstance(); Properties props = new…
L. Young
  • 163
  • 3
  • 7
  • 24
2
votes
2 answers

How can I configure the disk cache jcs

I am implementing the disk cache (jcs) for the first time. I would like to configure the cache.ccf file to allow the disk caching. My cache.ccf file has this configuration: …
2
votes
1 answer

Distributed cache using JCS

I am developing an application to manage cache consistence in distributed environment. I have a clustered weblogic environment in which there are multiple managed servers(possibly on different IPs). A java application will be deployed in all managed…
2
votes
1 answer

jcs 1.3 configuration with maven

I want to add jcs to my maven project. Under Configuration on the following page : http://commons.apache.org/proper/commons-jcs/faq.html What jars are required by JCS? As of verison 1.2.7.0, the core of JCS (the LRU memory cache, the indexed disk…
ranjit
  • 158
  • 7
1
vote
2 answers

Android cache Web response

I'm developing an application where I need to cache the response from urls the user visits. So is there a good caching system like jcs available already? Or a port of squid for java(android java) would do. Do I need to write my own caching system?
prongs
  • 9,422
  • 21
  • 67
  • 105
1
vote
1 answer

Overriding JCS events

I am using Apache JCS in our application to cache commonly used data at application start-up. However, if some of the data in cache is not used till its idle time, I want to manually reload that value from database. So, basically I want to…
Suban
  • 31
  • 3