refactored redis library by splitting into redis command classes