Overview
Strengths
Use Cases
Product Series
Performance
Command Compatibility
Regions and AZs
Relevant Concepts
Relevant Products
#!/usr/bin/env python#-*- coding: utf-8 -*-import redis#Replace with the host address and port number of the instance to be connectedhost = '192.xx.xx.195'port = 6379#Replace with the password of the instance to be connectedpwd='password'#When connecting, specify the AUTH information through the "password" parameter.r= redis.StrictRedis(host=host, port=port, password=pwd)#Database operations can be performed after the connection is established. For more information, please visit https://github.com/andymccurdy/redis-py.r.set('name', 'python_test');print r.get('name')

Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback