Last active
January 12, 2017 18:14
-
-
Save ndemianc/2497320599440167ecce6363febe873b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import redis | |
r = redis.StrictRedis(host='localhost', port=6379, decode_responses=True, password='123') | |
r.hset('candidate:1', 'name', 'Mary Sue') | |
r.hset('candidate:1', 'position', 'super tester') | |
r.hget('candidate:1', 'name') | |
m = r.hgetall('candidate:1') | |
print(m['name']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment