pip3 install
import redisconn = redis.Redis(host='192.168.1.51', port=6379)## set# conn.set('test', 'redis test')## getprint(conn.get('test'))