redis 的管道操作
#-*- coding: utf8 -*-
import redis
pool = redis.ConnectionPool()
r = redis.Redis(connection_pool=pool)
# 支持事务
pipe = r.pipeline(transaction=True)
pipe.multi()
pipe.set("user", "egon")
pipe.set("role", "sb")
pipe.execute() 相关推荐
星辰的笔记 2020-07-04
zhongweinan 2020-06-10
jiangfulai 2020-04-18
wanghongsha 2020-03-26
afanti 2020-03-14
hlihaihong 2020-01-13
kaosini 2020-01-12
kaosini 2020-01-12
yuuuuy 2020-01-06
FranksTD 2019-12-19
zhouhaihua00 2019-12-22
Sabrina 2019-12-22
hlihaihong 2019-12-15
hlihaihong 2019-12-14
我有一只小松鼠 2019-12-14
FranksTD 2019-12-13
SeekerTime 2019-11-17
yuetingzhuying 2015-10-17
wenjs00 2012-03-22