Skip to content

Instantly share code, notes, and snippets.

@ox1111
Created March 15, 2019 07:31
Show Gist options
  • Save ox1111/254a7c06bba272946c251c26d68a2626 to your computer and use it in GitHub Desktop.
Save ox1111/254a7c06bba272946c251c26d68a2626 to your computer and use it in GitHub Desktop.
#
# 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