a redis client based on TCP connection
- Put
RedisTCPClient.py
into your project; - Create a
RedisTCPClient
instance; - Run Redis command by calling
run_command
:
command = 'SELECT 0'
client = RedisTCPClient('localhost', 6379)
response = client.run_command(command)
- run
cd <SimpleRedisTCPClient>
python .\cli_client_example.py --host <host name of redis> --port <port of redis>
- input redis command and press enter, you will get the result.