-
-
Save sanju2/5ec2764cf73b247c99b30d37a2909ee5 to your computer and use it in GitHub Desktop.
ElastiCache Demo
This file contains 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 | |
cache = redis.StrictRedis(host='Redis-Primary-Endpoint', port=6379, db=0) | |
cache.set('my-cached-key', 'my-cached-value') | |
value = cache.get('my-cached-key') | |
decoded_value = value.decode('utf-8') | |
print(decoded_value) |
This file contains 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
#!/bin/bash | |
curl -O https://bootstrap.pypa.io/get-pip.py | |
python3 get-pip.py --user | |
pip install redis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment