use timeval. keep timeout in milliseconds for backwards compatibility.
remove all credis left. Migrate write_redis too.