finished redis refactory
new version