Spaces:
Sleeping
Sleeping
| from abc import ABC, abstractmethod | |
| from typing import Any | |
| class CacheStrategy(ABC): | |
| """ | |
| Defines the interface for the different cache system strategies (Local or Redis). | |
| """ | |
| def set(self, key: str, value: Any, language: str): | |
| pass | |
| def get(self, key: str, language: str): | |
| pass | |
| def clear_cache(self): | |
| pass | |