Skip to content

Instantly share code, notes, and snippets.

View vivekanand01's full-sized avatar

Vivek Anand vivekanand01

View GitHub Profile
@vivekanand01
vivekanand01 / main.py
Created February 20, 2020 12:03 — forked from SyntaxC4/main.py
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