code: public Result readDependencyByRange(int index, int length) {
          Result result = getFromResultPool();
          if (!this.disableDependencyId) {
              Result other = readByRange(DEP_ID_DATA, index, length, !CHECK_EXPIRED, !FILTER);
              result.copy(other);
              returnToResultPool(other);
          }
          return result;
      }
docs: ***********************************************************************
  readDependencyByRange()
  This method is used by CacheMonitor to retrive the dependency ids from the disk.
  If index = 0, it starts the beginning. If index = 1, it means "next". If Index = -1, it means "previous".
  The length of the max number of templates to be read. If length = -1, it reads all templates until the end.
  ***********************************************************************