private static synchronized void triggerUpdateUsingEvent(RawStore rawStore) {
    if (!isCachePrewarmed.get()) {
      LOG.error("cache update should be done only after prewarm");
      throw new RuntimeException("cache update should be done only after prewarm");
    }
    long startTime = System.nanoTime();
    long preEventId = lastEventId;
    try {
      lastEventId = updateUsingNotificationEvents(rawStore, lastEventId);
    } catch (Exception e) {
      LOG.error(" cache update failed for start event id " + lastEventId + " with error ", e);
      throw new RuntimeException(e.getMessage());
    } finally {
      long endTime = System.nanoTime();
      LOG.info("Time taken in updateUsingNotificationEvents for num events : " + (lastEventId - preEventId) + " = "
          + (endTime - startTime) / 1000000 + "ms");
    }
  }
Similar to setConf but used from within the tests
This does start the background thread for prewarm and update
@param conf
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java