redis Connecting to redis using Python Add element to list


Example

import redis

r = redis.StrictRedis(host='localhost', port=6379, db=0)

r.lpush('myqueue','myelement')