Closed AviAvni closed 3 months ago
This update enhances the Redis client library by integrating support for managing Redis cluster connections. A new module has been added to check if a connection is part of a cluster and to facilitate the establishment of cluster connections. Additionally, the connection initialization logic has been refined to cater to both cluster and sentinel configurations, improving the library's flexibility in handling various Redis deployment architectures.
File | Change Summary |
---|---|
.gitignore | Added rules to exclude venv and __pycache__ directories from version control. |
falkordb/cluster.py | Introduced Is_Cluster function to determine if a connection is part of a cluster and Cluster_Conn for creating cluster connections. |
falkordb/falkordb.py | Modified connection initialization to support cluster connections based on new functionalities from cluster.py . |
pyproject.toml | Updated version from 1.0.6 to 1.0.7 , indicating a release of possible new features or improvements. |
sequenceDiagram
participant User
participant FalkorDB
participant Cluster
User->>FalkorDB: Initialize connection
FalkorDB->>FalkorDB: Check if connection is cluster
FalkorDB-->>User: Connection established
FalkorDB->>Cluster: Create cluster connection
Cluster-->>FalkorDB: Cluster connection ready
🐇 In the garden of code, we hop and play,
New features sprout like flowers in May.
With clusters and connections, we dance with glee,
Enhancing our library, oh so carefree!
Let's leap through the branches, take flight in the sun,
For every small change brings a new kind of fun! 🌼✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Attention: Patch coverage is 50.00000%
with 7 lines
in your changes missing coverage. Please review.
Project coverage is 92.28%. Comparing base (
4c58167
) to head (dcf90b9
).
Files | Patch % | Lines |
---|---|---|
falkordb/cluster.py | 45.45% | 6 Missing :warning: |
falkordb/falkordb.py | 66.66% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
fix https://github.com/FalkorDB/falkordb-py/issues/50
Summary by CodeRabbit
New Features
Chores
.gitignore
file to exclude temporary files and directories from version control.