首页 > 代码库 > python中使用redis实战

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))

 

python中使用redis实战