[ 
https://issues.apache.org/jira/browse/JCS-238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17774367#comment-17774367
 ] 

Thomas Vandahl edited comment on JCS-238 at 10/12/23 8:16 AM:
--------------------------------------------------------------

Is there any reason for not using 
{code:java}
...
CacheAccess<CacheKey, CacheValue> testCache = JCS.getInstance( "testCache" );
...
{code}
?
Your manual initialization does not use the settings in your configuration 
file. Moreover, the direct use of the AuxiliaryCache is discouraged. You should 
have a memory cache in front of every AuxiliaryCache. See the 
[documentation|https://commons.apache.org/proper/commons-jcs/UsingJCSBasicWeb.html].

AuxiliaryCaches are built to be used asynchronously. So a delayed write 
operation is to be expected. 


was (Author: tv):
Is there any reason for not using 
{code:java}
...
CacheAccess<CacheKey, CacheValue> testCache = JCS.getInstance( "testCache" );
...
{code}
?
Your manual initialization does not use the settings in your configuration 
file. Moreover, the direct use of the AuxiliaryCache is discouraged. You should 
have a memory cache in front of every AuxiliaryCache. 

AuxiliaryCaches are built to be used asynchronously. So a delayed write 
operation is to be expected. 

> Every update to JCS Remote Cache update takes nearly ~2 seconds
> ---------------------------------------------------------------
>
>                 Key: JCS-238
>                 URL: https://issues.apache.org/jira/browse/JCS-238
>             Project: Commons JCS
>          Issue Type: Bug
>          Components: RMI Remote Cache
>    Affects Versions: jcs-3.1
>            Reporter: Murali Thirugnanam
>            Priority: Major
>             Fix For: jcs-3.1
>
>         Attachments: cache-client.ccf, cache-server.ccf
>
>
> We are using JCS Remote Cache to have cache available for all the 
> applications, but the every update to the remote cache takes approximately 2 
> seconds.
> Attaching the client and server cache.ccf files for your reference. Please 
> suggest if anything in the configuration to avoid this issue.
> Kindly help to avoid this delay required to update the cache. 
> [^cache-client.ccf]
> [^cache-server.ccf]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to