add api-user cache and test case