This commit is contained in:
hajdul88 2026-01-15 11:53:54 +01:00
parent e8edf4482d
commit 8b49f892ce
2 changed files with 6 additions and 2 deletions

View file

@ -8,7 +8,9 @@ class CacheDBInterface(ABC):
Provides a common interface for lock acquisition, release, and context-managed locking.
"""
def __init__(self, host: str, port: int, lock_key: str = "default_lock", log_key: str = "usage_logs"):
def __init__(
self, host: str, port: int, lock_key: str = "default_lock", log_key: str = "usage_logs"
):
self.host = host
self.port = port
self.lock_key = lock_key

View file

@ -63,7 +63,9 @@ def create_cache_engine(
return None
def get_cache_engine(lock_key: Optional[str] = None, log_key: Optional[str] = None) -> CacheDBInterface:
def get_cache_engine(
lock_key: Optional[str] = None, log_key: Optional[str] = None
) -> CacheDBInterface:
"""
Returns a cache adapter instance using current context configuration.
"""