@Override
  public List<SQLPrimaryKey> getPrimaryKeys(PrimaryKeysRequest request) throws MetaException {
    String catName = StringUtils.normalizeIdentifier(request.getCatName());
    String dbName = StringUtils.normalizeIdentifier(request.getDb_name());
    String tblName = StringUtils.normalizeIdentifier(request.getTbl_name());
    if (shouldGetConstraintFromRawStore(catName, dbName, tblName)) {
      return rawStore.getPrimaryKeys(request);
    }
    return sharedCache.listCachedPrimaryKeys(catName, dbName, tblName);
  }
getPartitionSpecsByFilterAndProjection interface is currently non-cacheable.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java