fix(session): enable JSON serialization for Valkey sessions
Build and Push Docker Container / build-and-push (push) Successful in 4m55s
Build and Push Docker Container / build-and-push (push) Successful in 4m55s
- Set SESSION_REDIS_JSON for the Redis-backed session configuration. - Match session serialization to the client's decoded string responses. - Leave the fallback session backend unchanged.
This commit is contained in:
@@ -61,6 +61,7 @@ if os.getenv("VALKEY_HOST", None) is not None:
|
||||
db=os.getenv('VALKEY_DB', 0),
|
||||
decode_responses=True,
|
||||
),
|
||||
SESSION_REDIS_JSON=True,
|
||||
)
|
||||
else:
|
||||
app.config.from_mapping(
|
||||
|
||||
Reference in New Issue
Block a user