Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion acapy_cache_redis/v0_1/redis_base_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ def __init__(self, root_profile: Profile) -> None:
except KeyError as error:
pass

# Get the connection string
try:
max_connections = int(config["max_connections"])
except:
max_connections = 50
LOGGER.debug(f"Max Redis Cache Pool connections set to: {max_connections}")

# Get the SSL CA Cert information (special redis SSL implementations only)
try:
lssl = config["ssl"]
Expand All @@ -58,7 +65,7 @@ def __init__(self, root_profile: Profile) -> None:
# Setup the aioredis instance
self.pool = aioredis.ConnectionPool.from_url(
self.connection,
max_connections=10,
max_connections=max_connections,
username=username,
password=password,
# ssl_ca_certs=ca_cert,
Expand Down