update user data in cache and add implement code for scan