Created
March 15, 2019 07:31
-
-
Save ox1111/254a7c06bba272946c251c26d68a2626 to your computer and use it in GitHub Desktop.
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
# | |
# redis-server --protected-mode no | |
# | |
import redis | |
r = redis.Redis(host='192.168.1.48', port=6379, db=0) | |
r.set('blackfalcon1', 'helloworld1') | |
r.set('blackfalcon2', 'helloworld2') | |
print( r.get('blackfalcon1') ) | |
print( r.get('blackfalcon2') ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment