<s> import logging <EOL> from . . import IModule <EOL> from ... libs . core . structs import CommonData <EOL> from ... libs . core . models import StringField , IntegerField <EOL> from . redis_dump import action_redis_dump <EOL> from . redis_shell import action_redis_shell <EOL> from . redis_info import action_redis_server_info <EOL> from . redis_cache import action_redis_cache_poison <EOL> from . redis_discover_db import action_redis_discover_dbs <EOL> from . redis_clients import action_redis_server_connected <EOL> from . redis_disconnect import action_redis_server_disconnect <EOL> from . cmd_actions import parser_redis_dump , parser_redis_server_disconnect , parser_redis_server_cache_poison <EOL> log = logging . getLogger ( ) <EOL> class ModuleModel ( CommonData ) : <EOL> target = StringField ( required = True ) <EOL> port = IntegerField ( default = <NUM_LIT> ) <EOL> db = IntegerField ( default = <NUM_LIT:0> ) <EOL> class RedisModule ( IModule ) : <EOL> """<STR_LIT>""" <EOL> __model__ = ModuleModel <EOL> __submodules__ = { <EOL> '<STR_LIT>' : dict ( <EOL> help = "<STR_LIT>" , <EOL> cmd_args = parser_redis_dump , <EOL> action = action_redis_dump <EOL> ) , <EOL> '<STR_LIT:info>' : dict ( <EOL> help = "<STR_LIT>" , <EOL> action = action_redis_server_info <EOL> ) , <EOL> '<STR_LIT>' : dict ( <EOL> help = "<STR_LIT>" , <EOL> action = action_redis_server_connected <EOL> ) , <EOL> '<STR_LIT>' : dict ( <EOL> help = "<STR_LIT>" , <EOL> cmd_args = parser_redis_server_disconnect , <EOL> action = action_redis_server_disconnect <EOL> ) , <EOL> '<STR_LIT>' : dict ( <EOL> help = "<STR_LIT>" , <EOL> action = action_redis_discover_dbs <EOL> ) , <EOL> '<STR_LIT>' : dict ( <EOL> help = "<STR_LIT>" , <EOL> action = action_redis_cache_poison , <EOL> cmd_args = parser_redis_server_cache_poison <EOL> ) , <EOL> } <EOL> name = "<STR_LIT>" <EOL> description = "<STR_LIT>" </s>
