python中使用redis实战

from redis import StrictRedis
rds = StrictRedis(host='127.0.0.1', port=6379, db=0, decode_responses=True)
input_output={'inputKey':'factor_input','outputKey':'factor_output'}
rds.set(input_output.get('input'),result)
result = rds.get(input_output.get('input'))

 

posted on 2017-06-22 20:56  小鸟的士林  阅读(221)  评论(0编辑  收藏  举报

导航