9951 explained code solutions for 126 technologies


python-redisAdd element to the end of list in Redis


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

connect to Redis server

rpush

pushes specified element to the end of the list

list

name of the list to add element to

value

value of the new element to add to the list