jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Smuts <asm...@yahoo.com>
Subject Re: Access to Cache Keys, Groups Performance Questions
Date Sun, 09 Oct 2005 23:41:12 GMT
You should try to avoid having to get the keys if
possible.  There are some ways to do it.  You can get
the memory cache from the composite cache (a region). 
you can get the composite cache fromteh
compositecachemanager.  The JCS class is just a
wrapper around cacheAccess which uses the composite
cache to do all the real work.  The memory cache will
give you access to the keys, but only the keys in

In the remote distribution model, the local caches
don't have a clue what all the keys are in the system.
 They only know about what they have . . .

The grouping functionality used to be a little more
useful for getting keys, but it was more complex.  

Tell me what you are trying to do, and I can probably
come up with some solution.  Start with telling me why
you need the keys.


--- "Joe Reger, Jr." <regerj@gmail.com> wrote:

> Hi all!
> I'm just moving things over to JCS from a couple
> other caching mechanisms,
> mainly because of the distributed put features. I
> have a couple questions:
> 1) Without using JCS.putInGroup() and
> JCS.getFromGroup(), is there any way
> to ket the keys for all objects in the cache? I've
> seen JCS.getGroupKeys()
> which works with a group, but I haven't been able to
> find a similar function
> that works when I get/put with the plain old
> JCS.get() and JCS.put(). I've
> tried JCS.getGroupKeys() with group names of null
> and blank string, but
> neither brings back the keys I'm looking for.
> 2) Is there any performance impact when using
> JCS.getFromGroup() instead of
> JCS.get()? Seems like there might be a small cost
> and since in at least one
> situation I don't need the group functionality but
> do need to retrieve keys
> I thought I'd ask.
> Keep up the great work!
> Best,
> Joe

To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org

View raw message