Update get_cache_engine.py

This commit is contained in:
hajdul88 2025-10-07 18:35:41 +02:00
parent 9adb89b718
commit 03eedddf29

View file

@ -45,7 +45,7 @@ def create_cache_engine(
return None
def get_cache_engine() -> CacheDBInterface:
def get_cache_engine(lock_key: str) -> CacheDBInterface:
"""
Returns a cache adapter instance using current context configuration.
"""
@ -53,7 +53,7 @@ def get_cache_engine() -> CacheDBInterface:
return create_cache_engine(
cache_host=config.cache_host,
cache_port=config.cache_port,
lock_key=config.lock_key,
lock_key=lock_key,
agentic_lock_expire=config.agentic_lock_expire,
agentic_lock_timeout=config.agentic_lock_timeout,
)