public void addToCache(File in, Date inDate){
		boolean inCache = false;
		int oldest = 0;
		
		for(int i=0; i < cacheSize; i++){
			if(files[i] != null && files[i].getName().equals(in.getName())){
				inCache = true;
				dates[i] = inDate;
				break;
			}
			if(dates[oldest] != null && dates[i] != null && dates[i].before(dates[oldest])) oldest = i;
		}
		if(!inCache){
			//Find oldest, evict, add new file to cache
			if(files[oldest] != null) files[oldest].delete();
			files[oldest] = in;
			dates[oldest] = inDate;
		}
	}