-
-
Save vivekanand01/5e62451ade05c5887578f5b5401aa951 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