public List<ColumnStatistics> getPartitionColStatsListFromCache(String catName, String dbName, String tblName,
      List<String> partNames, List<String> colNames, String writeIdList, boolean txnStatSupported) {
    List<ColumnStatistics> colStatObjs = null;
    try {
      cacheLock.readLock().lock();
      TableWrapper tblWrapper = tableCache.getIfPresent(CacheUtils.buildTableKey(catName, dbName, tblName));
      if (tblWrapper != null) {
        colStatObjs = tblWrapper.getPartColStatsList(partNames, colNames, writeIdList, txnStatSupported);
      }
    } catch (MetaException e) {
      LOG.warn("Failed to get partition column statistics");
    } finally {
      cacheLock.readLock().unlock();
    }
    return colStatObjs;
  }
Replaces the old db object with the new one. This will add the new database to cache if it does
not exist.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/SharedCache.java