feat: updates constructor params in base class

This commit is contained in:
hajdul88 2026-01-15 11:49:37 +01:00
parent f4c2365c23
commit 97fcc15af5

View file

@ -8,10 +8,11 @@ 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):
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
self.log_key = log_key
self.lock = None
@abstractmethod