Skip to content

Instantly share code, notes, and snippets.

@ndemianc
Last active January 12, 2017 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndemianc/2497320599440167ecce6363febe873b to your computer and use it in GitHub Desktop.
Save ndemianc/2497320599440167ecce6363febe873b to your computer and use it in GitHub Desktop.
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