9951 explained code solutions for 126 technologies


python-redisAdd element to the list in Redis


r = redis.Redis()
r.lpush('list', 'value')ctrl + c
redis.Redis

connect to Redis server

lpush

pushes specified element to the beginning of the list

list

name of the list to add element to

value

value of the new element to add to the list