minor performance improvement, disable redis pipeline transaction

This commit is contained in:
Benedikt Bartscher 2024-12-14 14:51:20 +01:00
parent 2720c869a5
commit ffd99ec00e
No known key found for this signature in database

View File

@ -3532,7 +3532,7 @@ class StateManagerRedis(StateManager):
client_token: The name of the hash.
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)
if self._hexpire_not_supported:
pipe.expire(client_token, self.token_expiration)