标签:python redis
pip install redis
#!/usr/bin/env python #coding=utf8 import redis r = redis.Redis(host='<ip>', port=<port>, db=<dbname>) r.set('kin','kin') r.get('kin') r.dbsize() r.delete('kin') r.dbsize() r.save() r.flushdb()
https://github.com/andymccurdy/redis-py
标签:python redis
原文地址:http://blog.csdn.net/jxzkin/article/details/42267695