This example uses the redis library to connect to Redis®*, write a key/value pair, and read it out again.
pip install redis
Note: You can retrieve the connection details from the Aiven Console overview tab.
./main.py --host <redis host> --password <redis password> --port <redis port>
* Redis is a registered trademark of Redis Ltd. Any rights therein are reserved to Redis Ltd. Any use by Aiven Oy is for referential purposes only and does not indicate any sponsorship, endorsement or affiliation between Redis and Aiven Oy.