Migrate write_redis to hiredis

Clean all credis stuff.