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
1
vote
1 answer

How to use ehcache or JCS as a queue or streaming caching?

I find that most of the features provided by ehCache are reasonably performing put and get by key..But I just want to use a caching to add and peek record as a queue(we need caching,much likes a buffer,because the data may be big..).How to use…
ygnhzeus
  • 367
  • 1
  • 2
  • 14
1
vote
2 answers

Getting keys from JCS Cache

I am using JCS cache for performance enhancement.There is an issue when I need to maintain a set of keys because the type of storage I use is generally offline storage to the disk. Is there a way to get the set of keys alone from the cache as I can…
Madusudanan
  • 1,017
  • 1
  • 15
  • 36
1
vote
2 answers

JCS Concurrency Error

I am using JCS for caching in my application.Recently some errors are occuring where concurrent access to data in the cache results in null value i.e one thread writes to the cache and one thread reads to the cache.I want to know whether JCS…
Madusudanan
  • 1,017
  • 1
  • 15
  • 36
1
vote
1 answer

Information about JCS

This is conjunction with my previous question https://stackoverflow.com/questions/8428911/jcs-disk-cache-data-retrieval Does JCS read from disk even after the application is shutdown.i.e I have a JCS that writes to disk.The thing is one program does…
Madusudanan
  • 1,017
  • 1
  • 15
  • 36
1
vote
0 answers

JCS server returning null and should not be

Initially a JCS server at 172.25.22.122:1101 is not running. A JCS client application detects this and binds to the JCS at 172.25.22.121:1101 On an attempt to get a value from the cache the client application gets: 159687 [ActiveMQ Session Task-2]…
Jack
  • 29
  • 5
1
vote
0 answers

How to get all the data from cache in java?

Here, I am using the Java Caching System (JCS). I can put and get data in the cache. I need the whole data set for example like a key-value pair. Please guide me a way to retrieve it. package net.practice.so; import org.apache.jcs.JCS; import…
Ashwin Karki
  • 249
  • 4
  • 18
1
vote
0 answers

Cache memory not saving values in cache when running the project

I am implementing cache system in maven project.I am not using spring or any framework.The concept is to : 1.At first user will hit the API and Check whether the data is available in cache or not. 2.If cache is empty ,call the database and put…
Ashwin Karki
  • 249
  • 4
  • 18
1
vote
0 answers

Printed Null values in Java Caching System(JCS)

I tried to implement the java caching system using (JCS).I learned from some websites and tried to implement them.Here are some of my configuration: pom.xml
Ashwin Karki
  • 249
  • 4
  • 18
1
vote
1 answer

cache.ccf file not picked up by javastravav3api

location of cache.ccf file stk -app -bin -build.sbt -cache.ccf -conf -lib -libexec -LICENSE -logs -project -public -README -target -test stacktrack: play.api.http.HttpErrorHandlerExceptions$$anon$1: Execution…
Rajat
  • 2,467
  • 2
  • 29
  • 38
1
vote
0 answers

JCS 2.2 - able to write/retrieve from disk, but not from memory

I'm a beginner to JCS, though I am somewhat familiar with Java and Eclipse (which is what I'm using to code). I'm trying to create a caching system that will store elements in the memory cache first before storing elements in the disk cache (when…
syim
  • 501
  • 1
  • 4
  • 16
1
vote
2 answers

JCS notify on expire/remove

we use JCS very simply. Not distributed or anything, simply: JCS jcs = JCS.getInstance("region-name"); I'm trying to register some kind of listener that can be used to receive a notification/event when an element is removed or expired from the…
arw
  • 131
  • 1
  • 8
1
vote
2 answers

JCS cache not getting updated value without restarting tomcat

i am using JCS cache in my application . I am updating jcs cache data from Java Application (Main Method). And Accessing it with another tomcat application( war). My Problem is i am not getting updated cache data for tomcat application.? Only When…
Suresh
  • 11
  • 4
1
vote
0 answers

HDP 2.5 - Error is Kerberizing sandbox

I'm trying to kerberize HDP 2.5, and getting error when using doing this... Link being used to kerberize: https://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.1/bk_Ambari_Security_Guide/content/_installing_and_configuring_the_kdc.html I've…
Karan Alang
  • 869
  • 2
  • 10
  • 35
1
vote
1 answer

Caching - JCS Vs Apache Ignite

What are the pros and cons for JCS against Ignite? In Apache Ignite, the server node(where caches are stored) can run in a separate JVM in a separate host machine, other than the client application. For example, our application can be distributed in…
1
vote
2 answers

Storing and retrieving the JCS cache from a file

We are storing the auth token in the JCS, on restarting the server, the cache context got lost. In order to over come this, when stopping the server, decided to store the JCS list of values in to a file and When restarted, read the file and store…
Premanand K
  • 632
  • 8
  • 18