hsg_eaa_overhaul / src /cache /cache_base.py
Pygmales
loaded project
2b7b752
raw
history blame contribute delete
455 Bytes
from abc import ABC, abstractmethod
from typing import Any
class CacheStrategy(ABC):
"""
Defines the interface for the different cache system strategies (Local or Redis).
"""
@abstractmethod
def set(self, key: str, value: Any, language: str, session_id: str):
pass
@abstractmethod
def get(self, key: str, language: str, session_id: str):
pass
@abstractmethod
def clear_cache(self):
pass