Implemented cache expiry time.