private HashDataCache(DataCache<Pair<String,T>> cache,String algorithm){
  this.cache=cache;
  this.algorithm=algorithm;
  try {
    MessageDigest.getInstance(algorithm);
  }
 catch (  NoSuchAlgorithmException e) {
    String msg="Unable to get hash generator with algorithm: " + algorithm;
    LOG.warn(msg,e);
    throw new SystemConfigException(e);
  }
}

private HashDataCache ( DataCache < Pair < String , T > > cache , String algorithm ) { this . cache = cache ; this . algorithm = algorithm ; try { MessageDigest . getInstance ( algorithm ) ; } catch ( NoSuchAlgorithmException e ) { String msg = "Unable to get hash generator with algorithm: " + algorithm ; LOG . warn ( msg , e ) ; throw new SystemConfigException ( e ) ; } }
creates cache hashing with provided algorithm .
