Last active
September 7, 2015 15:37
-
-
Save Burning-Chai/78dd249d363bf83ab29d to your computer and use it in GitHub Desktop.
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/python | |
# -*- coding: utf-8 -*- | |
import json | |
import redis | |
import time | |
client = redis.StrictRedis( | |
host='IPアドレス', | |
port=6379, | |
db=0, | |
password='パスワード' | |
) | |
client.set('yanou', json.dumps({'name': 'Yanou Masahiro', 'age': 22})) | |
obj = client.get('yanou') | |
print obj |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment