9951 explained code solutions for 126 technologies


python-redisGet list (all elements) from Redis


r = redis.Redis()
list = r.lrange('list', 0, -1)ctrl + c
redis.Redis

connect to Redis server

lrange

get range of elements from list in Redis

list

name of the list to get elements of

0, -1

start from first element and end with the last one