- If you create the cache using a
CacheFactory, you can call the factory's
addSubregistryaddMeterSubregistry()method one or more times to add sub-registries to the cache it creates.
- If the cache is created for you as part of a server or locator, you can implement a custom
MetricsPublishingServiceservice that initializes your sub-registry and adds it to the cache.