Skip to content

Instantly share code, notes, and snippets.

@SyntaxC4
Created December 12, 2014 22:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save SyntaxC4/e08356795fb1d5abb368 to your computer and use it in GitHub Desktop.
Save SyntaxC4/e08356795fb1d5abb368 to your computer and use it in GitHub Desktop.
Connecting to Azure Redis Cache from Python
import redis
r = redis.StrictRedis(host='[cache-name].redis.cache.windows.net', port=6380, db=0, password='[access-key]', ssl=True)
r.set('foo','bar')
result = r.get('foo')
print result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment