Upgrade eredis and remove unnecessary codes