Please consider the following example
>>import redis >>redis_db_url = \'127.0.0.1\' >>r = redis.StrictRedis(host = redis_db_url,port = 6379,db
Consider the following:
r.sadd('a', 1, 2, 3)
That should do the trick.