Skip to content

Commit e597f86

Browse files
committed
Clean up code and make cluster_mode consistent with other boolean flags
1 parent 7a9cf10 commit e597f86

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ You can configure Claude Desktop to use this MCP Server.
124124
"REDIS_PSW": "<your_redis_database_password>",
125125
"REDIS_SSL": True|False,
126126
"REDIS_CA_PATH": "<your_redis_ca_path>",
127-
"REDIS_CLUSTER_MODE": True|False # Set to True to enable Redis Cluster mode
127+
"REDIS_CLUSTER_MODE": True|False
128128
}
129129
}
130130
}

src/common/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"ssl_certfile": os.getenv('REDIS_SSL_CERTFILE', None),
1717
"ssl_cert_reqs": os.getenv('REDIS_SSL_CERT_REQS', 'required'),
1818
"ssl_ca_certs": os.getenv('REDIS_SSL_CA_CERTS', None),
19-
"cluster_mode": os.getenv('REDIS_CLUSTER_MODE', 'false').lower() in ('true', '1', 't')}
19+
"cluster_mode": os.getenv('REDIS_CLUSTER_MODE', False) in ('true', '1', 't')}
2020

2121

2222
def generate_redis_uri():

src/common/connection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ def get_connection(cls, decode_responses=True) -> Redis:
1717
if cls._instance is None:
1818
try:
1919
if REDIS_CFG["cluster_mode"]:
20-
# In cluster mode, connect to the host and port from REDIS_CFG
2120
cls._instance = RedisCluster(
2221
host=REDIS_CFG["host"],
2322
port=REDIS_CFG["port"],

0 commit comments

Comments
 (0)