Migrate write_redis to hiredis

@octo ask for a PR just for this