Skip to content

Instantly share code, notes, and snippets.

@Burning-Chai
Last active September 7, 2015 15:37
Show Gist options
  • Save Burning-Chai/78dd249d363bf83ab29d to your computer and use it in GitHub Desktop.
Save Burning-Chai/78dd249d363bf83ab29d to your computer and use it in GitHub Desktop.
#!/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