Obtaining a list of cache names from Coherence
929352May 4 2012 — edited Jul 30 2013Hello All,
How to I go about getting a list of the NamedCaches that are present in a Coherence cluster at any given time?
I couldn't find any APIs for the same, nor could I find any definitive answers in the forums.
I need to perform the pretty routine task of pre-loading my caches on startup, and therefore I need the names of the caches configured in my coherence-cache-config.xml file.
I do not have any dynamically added caches, so yes, I could pretty much use hard coded cache names in my initialization routine.
I could also parse my config file to avoid hardcoding of the cache names.
But I was wondering whether there was an API from Coherence that could help me out.
Thanks.