You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Hans Liebenberg <ha...@cambrient.com> on 2008/11/25 14:57:37 UTC
Manual remove broadcast in lateral cache
Hi,
Is there currently a way,via the API, to manually broadcast a "remove"
of a specific key to other nodes in a tcp lateral configuration without
having to remove from the node in question.
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org
Re: [SPAM] Re: Manual remove broadcast in lateral cache
Posted by Hans Liebenberg <ha...@cambrient.com>.
HI,
Thanks, I did check the code to find the place I would need to make a
change but have decided against it due to the "hack" nature of it.
The reason I need it is that my object I store in cache has a member
hashtable of values. Our application can modify that hashtable without
modifying the rest of the object in which case no "remove" or "put" is
done from the cache. I have decided to rather make changes to our app
then to the JCS code.
Thanks for your help though
Betten, Thorben wrote:
> Hello,
>
> AFAIK it's not possible via API. Why do you want to do that?
> Doesn't the cache policy to issue a remove on putmeet your requirements?
>
> Anyway:
> Then one thing coming into my mind would be to patch the class
> org.apache.jcs.engine.control.CompositeCacheto add a getter method
> for member variable auxCaches.
>
> Then you can access your cache as you already do:
> JCS.getInstance(String region)or directly viaCompositeCacheManager.getCache(String region)
> and then get returned composite cache's auxiliray caches to perform a remove on auxiliary only.
>
> But this is kind of dirty hack and probably not a good solution to accomplish described scenario.
>
>
> Hans Liebenberg <ha...@cambrient.com> hat am 25. November 2008 um 14:57 geschrieben:
>
>
>> Hi,
>>
>> Is there currently a way,via the API, to manually broadcast a "remove"
>> of a specific key to other nodes in a tcp lateral configuration without
>> having to remove from the node in question.
>>
>> Thanks
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>>
>>
>
>
>
>
> --
> with best regards,
> Thorben Betten
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org
Re: Manual remove broadcast in lateral cache
Posted by "Betten, Thorben" <th...@open-xchange.com>.
Hello,
AFAIK it's not possible via API. Why do you want to do that?
Doesn't the cache policy to issue a remove on putmeet your requirements?
Anyway:
Then one thing coming into my mind would be to patch the class
org.apache.jcs.engine.control.CompositeCacheto add a getter method
for member variable auxCaches.
Then you can access your cache as you already do:
JCS.getInstance(String region)or directly viaCompositeCacheManager.getCache(String region)
and then get returned composite cache's auxiliray caches to perform a remove on auxiliary only.
But this is kind of dirty hack and probably not a good solution to accomplish described scenario.
Hans Liebenberg <ha...@cambrient.com> hat am 25. November 2008 um 14:57 geschrieben:
> Hi,
>
> Is there currently a way,via the API, to manually broadcast a "remove"
> of a specific key to other nodes in a tcp lateral configuration without
> having to remove from the node in question.
>
> Thanks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>
--
with best regards,
Thorben Betten