Skip to content

Instantly share code, notes, and snippets.

@glarrain
Created December 19, 2012 21:38
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 glarrain/4340765 to your computer and use it in GitHub Desktop.
Save glarrain/4340765 to your computer and use it in GitHub Desktop.
Remote Redis server
import redis
redis_host = 'ec2-xxx.amazonaws.com'
value = raw_input()
r = redis.StrictRedis(host=redis_host, password=value)
r.set('foo', 'hellooo')
r.get('foo')
quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment