minor performance improvement, disable redis pipeline transaction
This commit is contained in:
parent
2720c869a5
commit
ffd99ec00e
@ -3532,7 +3532,7 @@ class StateManagerRedis(StateManager):
|
|||||||
client_token: The name of the hash.
|
client_token: The name of the hash.
|
||||||
redis_hashset: The keys and values to set.
|
redis_hashset: The keys and values to set.
|
||||||
"""
|
"""
|
||||||
pipe = self.redis.pipeline()
|
pipe = self.redis.pipeline(transaction=False)
|
||||||
pipe.hset(name=client_token, mapping=redis_hashset)
|
pipe.hset(name=client_token, mapping=redis_hashset)
|
||||||
if self._hexpire_not_supported:
|
if self._hexpire_not_supported:
|
||||||
pipe.expire(client_token, self.token_expiration)
|
pipe.expire(client_token, self.token_expiration)
|
||||||
|
Loading…
Reference in New Issue
Block a user