Remember that you’ll need to do two things to connect properly to Redis on cpsc: authenticate with the password I gave in class today, and select the correct instance.
From the command line:
$ redis-cli 127.0.0.1:6379> auth theClassPassword OK 127.0.0.1:6379> select yourInstanceNumber OK 127.0.0.1:6379[yourInstanceNumber]>
From Python:
import redis r = redis.Redis(password="theClassPassword", db=yourInstanceNumber, decode_responses=True, charset='utf-8')