added redis adapter
Code Quality Pipeline / code-quality (pull_request) Failing after 42s
Test Python Package / test (pull_request) Failing after 1s

This commit is contained in:
Brian Bjarke Jensen
2025-09-14 15:45:19 +02:00
parent c789e33290
commit 1abcae4050
9 changed files with 289 additions and 3 deletions
@@ -0,0 +1,23 @@
"""Definition of ConnectionAwareInterface abstract base class."""
from abc import ABC, abstractmethod
class ConnectionAwareInterface(ABC):
"""Interface that defines connection-related methods."""
@abstractmethod
def connect(self) -> None:
"""Connect to resource."""
raise NotImplementedError()
@abstractmethod
def disconnect(self) -> None:
"""Disconnect from resource."""
raise NotImplementedError()
@property
@abstractmethod
def is_connected(self) -> bool:
"""Check if connected to resource."""
raise NotImplementedError()