Skip to content

Conversation

@xmaiconx
Copy link
Contributor

Refactored Redis Connection Management

This pull request refactors the Redis connection handling to remove the singleton pattern, which previously restricted the application to a single Redis client configuration. By opening and closing connections per operation, we ensure that multiple Redis clients can be configured and used independently within the application. This change improves flexibility and aligns with best practices for managing database connections.

Copy link
Contributor

@HenryHengZJ HenryHengZJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you @xmaiconx !

@HenryHengZJ HenryHengZJ merged commit d20a970 into FlowiseAI:main Dec 3, 2024
2 checks passed
@xmaiconx xmaiconx deleted the bugfix/redis-connection-is-closed branch December 4, 2024 14:28
Yshayy pushed a commit to Yshayy/Flowise that referenced this pull request Apr 23, 2025
* Added redis open connection if it is closed

* Removed unecessary modification

* Added check connection in all methods

* Renamed method

* added await on method call

* Refactor Redis connection handling: remove singleton pattern, ensure connections are opened and closed per operation.

---------

Co-authored-by: Maicon Matsubara <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants