Redis Command refactoring