* From: Weaver, Scott * Subject: How do you retrieve a collection keys for a cache region * Date: Thu, 18 Apr 2002 12:12:45 -0700 _____
Is there anyway to retrieve a collection of all of the keys for a paticular cache region? Thanks, Scott Hi: One way to manage a list is to use the group feature. You can put elements in a group that is within a region. The list of elements within a group is managed across servers. The list isn't transmitted, but updates to the list are. So, all of the elements do not have to be present for you to know about them. I'm not sure why you need the list, but generally it isn't necessary. Often it is better just to put a list into one element. If you need to delete related elements, one good way to do this is to use the hierarchical delete mechanism. You can associate elements by putting a ":" into the key. You can call remove with a partial key ending in a ":" and all the elements starting with that key will be removed. If we allowed direct access to the cache manager, or the hub, then you could get a list of all the elements in memory or on disk. Depending on your distribution settings and your environment, this might not be a complete list of all the elements that are in the region in all the jvms. Let me know what you are trying to do. I may have a better idea. Aaron Aaron Smuts Director, Systems and Development e-Business Division REALMCash [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> office: (212) 653-0578 cell: (646) 263-5398
