...
- If you create the cache using a
CacheFactory
, you can call the factory'saddSubregistryaddMeterSubregistry()
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
MetricsPublishingService
service that initializes your sub-registry and adds it to the cache.
...