Support API v2. Add cache object.