9951 explained code solutions for 126 technologies


python-redisGet value from Redis key


r = redis.Redis()
val = r.get('test')ctrl + c
redis.Redis

connect to Redis server

r.get

gets value by key from Redis

test

key to get value from

val

variable will store value obtained from Redis