Refactor TTL out of the ObjectCache class