ruff fix
This commit is contained in:
parent
e8edf4482d
commit
8b49f892ce
2 changed files with 6 additions and 2 deletions
|
|
@ -8,7 +8,9 @@ class CacheDBInterface(ABC):
|
||||||
Provides a common interface for lock acquisition, release, and context-managed locking.
|
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.host = host
|
||||||
self.port = port
|
self.port = port
|
||||||
self.lock_key = lock_key
|
self.lock_key = lock_key
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,9 @@ def create_cache_engine(
|
||||||
return None
|
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.
|
Returns a cache adapter instance using current context configuration.
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue