Cache now passes

Expiration date should be used to automatically return cached items.
Write a function to compare time.