Added a compare time function to the cache class.