Files
g2s-aggregator/app/repositories/cache/redis_cache.py
T
Раис Юсупалиев adfa3e26de 001 Project structure
2026-03-07 13:41:30 +03:00

18 lines
584 B
Python

"""Redis cache repository skeleton."""
from typing import Any
class PriceCache:
async def get(self, key: str) -> Any | None:
_ = key
raise NotImplementedError("Redis repository implementation is added in task 004.")
async def set(self, key: str, value: Any, ttl: int) -> None:
_ = (key, value, ttl)
raise NotImplementedError("Redis repository implementation is added in task 004.")
async def invalidate(self, key: str) -> None:
_ = key
raise NotImplementedError("Redis repository implementation is added in task 004.")