record api client IPs in redis