In [8]: def redis_cluster():
...: redis_nodes = [{'host':'192.168.100.60','port':7000},
...: {'host':'192.168.100.60','port':7001},
...: {'host':'192.168.100.60','port':7002},
...: {'host':'192.168.100.60','port':7003},
...: {'host':'192.168.100.60','port':7004},
...: {'host':'192.168.100.60','port':7005}
...: ]
...: redisconn = StrictRedisCluster(startup_nodes=redis_nodes)
...: redisconn.set('name','admin')
...: redisconn.set('age',18)
...: print("name is:",redisconn.get('name'))
...: print(redisconn.get('name'),redisconn.get('age'))
...:
In [9]: redis_cluster()
name is: b'admin'
b'admin