private static Collection<String> catalogsToCache(RawStore rs) throws MetaException {
    Collection<String> confValue = MetastoreConf.getStringCollection(rs.getConf(), ConfVars.CATALOGS_TO_CACHE);
    if (confValue == null || confValue.isEmpty() || (confValue.size() == 1 && confValue.contains(""))) {
      return rs.getCatalogs();
    } else {
      return confValue;
    }
  }
This method is only used for testing. Test method will init a new cache and use the new handle to query the cache
to get content in the cache. In production, no code would/should call this method, because SharedCache should be
a singleton.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java