feat: updates constructor params in base class
This commit is contained in:
parent
f4c2365c23
commit
97fcc15af5
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue