Created
December 12, 2014 22:31
-
-
Save SyntaxC4/e08356795fb1d5abb368 to your computer and use it in GitHub Desktop.
Connecting to Azure Redis Cache from Python
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='[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