code: private boolean isFresh(Record record) {
      double period = record.data.getMetaInfo().getFreshnessPeriod();
      return period < 0 || record.addedAt + (long) period > System.currentTimeMillis();
    }
docs: Check if a record is fresh.
  
  @param record the record to check
  @return true if the record is fresh