Created
August 18, 2017 09:06
-
-
Save jintao-zero/05fa604360a93b783c4a8c399adbda85 to your computer and use it in GitHub Desktop.
python redis test
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
#!/usr/bin/env python | |
import redis | |
print 'this is python redis test' | |
if __name__ == '__main__': | |
#redis.Redis | |
r = redis.Redis() | |
print r.dbsize() | |
print 'main' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment