cache length of console_api