Use datetime.max for timeout.

To keep "forever" caching backward compatible, use `datetime.max` as the timeout.